Test Suite For Cross-Browser CSS1 From Javascript API

If a test succeeds, it will print true.

If it fails, it will print false.

To quickly search for a failure, open this document and use Edit-->Find to search for "false."

If you change the functions in the xbcss1.js script, run this test suite to make sure you haven't broken any of xbcss1.js's functionality. In this way, test suites make it easier to reuse and extend existing software modules. Script developers can easily and quickly retest all of a script's functions after making changes. Quality Assurance automation speeds development and raises software quality.

Write a test suite at the same time that you develop a module. Each time you write a function, write a set of tests that ensure the function is working. Make sure the set of tests covers all the inputs the function is expected to handle. Pay particular attention to boundary values.

Writing a test suite takes more time at first, but it pays off later in development when you modify core functions and must retest them to make sure they haven't been broken. There is never time to retest functions manually. Test suites make it easy to test code on multiple platforms or application versions. Test suites also reduce stress for the developer by giving him or her confidence that the software has been thoroughly tested.


margin-left

50px left margin

72pt (1 inch) left margin

3pc (.5 inch) left margin

50% left margin


margin-right

default text flow across entire page default text flow across entire page default text flow across entire page default text flow across entire page default text flow across entire page

100px right margin text flow across page text flow across page text flow across page text flow across page text flow across page

50% right margin text flow across page text flow across page text flow across page text flow across page text flow across page


margin


left margin 200px, top margin 200px text flow across page text flow across page text flow across page text flow across page text flow across page


right margin 200px, bottom margin 200px text flow across page text flow across page text flow across page text flow across page text flow across page



padding

left padding 50px, top padding 50px text flow across page text flow across page text flow across page text flow across page text flow across page

right padding 50px, bottom padding 50px text flow across page text flow across page text flow across page text flow across page text flow across page


color

aqua, black, blue, fuchsia, gray, green, lime, maroon, navy, olive, purple, red, silver, teal, yellow, white


background-color

centered text in table cell on background-color black

centered text in SPAN


font-size

32 point, 16 point, 8 point text.

xx-small x-small small medium large x-large xx-large

larger size, default size, smaller size.


font-weight

bold text, normal text.


text-decoration

underline, line-through.


font-style

italic, normal.


font-family

Helvetica, Arial, sans-serif

Times, serif

Chicago, Courier, monospace

cursive (not available on most machines)

fantasy (not available on most machines)


text-transform

capitalize

uppercase

lowercase

no Capitalization change


text-align

left aligned text

right aligned text

center aligned text

justified text justified text justified text justified text justified text justified text justified text justified text justified text justified text justified text justified text justified text justified text justified text


text-indent

50px indent text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text

5em indent text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text

50% indent text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text text


list-style-type

unordered lists
disccirclesquare
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
ordered lists
decimal lower- 
roman
upper- 
roman
lower- 
alpha
upper- 
alpha
  1.  
  2.  
  3.  
  1.  
  2.  
  3.  
  1.  
  2.  
  3.  
  1.  
  2.  
  3.  
  1.  
  2.  
  3.  

red DIV P B

normal P B

red P .abc #abc

red #def .abc B


testing generation of IE4 addRule code with variable arguments

For the latest technical information on Sun-Netscape Alliance products, go to: http://developer.iplanet.com

For more Internet development resources, try Netscape TechSearch.


Copyright © 1999 Netscape Communications Corporation.
This site powered by: Netscape Enterprise Server and Netscape Compass Server.