XSLT Tests

From MozillaWiki
Jump to navigation Jump to search

Getting the XSLT test suite

  1. set CVSROOT to :pserver:anoncvs@cvs.apache.org:/home/cvspublic
  2. Check out the xml-xalan/test module.

For example, on a Unix you might do

 env CVSROOT=:pserver:anoncvs@cvs.apache.org:/home/cvspublic cvs co xml-xalan/test

Running the tests

WARNING: these tests have only been checked in Seamonkey. They may well not work in Firefox.

  1. In the tests directory in the Xalan tree you pulled (this is the directory that has conf and conf-gold as subdirectories) run the script found at content/xslt/tests/buster/helper/generate-rdf.pl in your source tree. This will generate a file called xalan.rdf in the Xalan tests directory.
  2. Start a build that does NOT have the changes being tested in it. Go to the Tools > Web Development > Xalan Tests menu option.
  3. Click the "Browse" button and browse for the xalan.rdf file that you created in step 1.
  4. Select the "conf" item in the tree at the bottom of the Xalan Tests dialog.
  5. Click "run checked tests"
  6. Wait until the test completes.
  7. Go to File > Save Results and save the results.
  8. Repeat steps 2-7 in a build that DOES have the changes being tested in it.
  9. Compare the results.