QA/TDAI/Projects/Test Suite Integration/Example
From MozillaWiki
< QA | TDAI | Projects | Test Suite Integration
This is a RAKE-generated script file that takes a set of javascript tests and puts them into an HTML page for testing.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Prototype Unit test file | Ajax</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <script type="text/javascript" charset="utf-8"> var eventResults = {}; var originalElement = window.Element; </script> <script src="../../../dist/prototype.js" type="text/javascript"></script> <script src="../../lib/unittest.js" type="text/javascript"></script> <link rel="stylesheet" href="../../test.css" type="text/css" /> <script src="../fixtures/ajax.js" type="text/javascript" charset="utf-8"></script> <script src="../ajax_test.js" type="text/javascript"></script> </head> <body> <h1>Prototype Unit test file</h1> <h2>Ajax</h2> <!-- This file is programmatically generated. Do not attempt to modify it. Instead, modify --> <!-- Log output start --> <div id="testlog"></div> <!-- Log output end --> <!-- HTML Fixtures start --> <div id="content"></div> <div id="content2" style="color:red"></div> <!-- HTML Fixtures end --> </body> </html> <script type="text/javascript" charset="utf-8"> eventResults.endOfDocument = true; </script>