/[jscoverage]/trunk/doc/example-jsunit/jsunit/testRunner.html
ViewVC logotype

Contents of /trunk/doc/example-jsunit/jsunit/testRunner.html

Parent Directory Parent Directory | Revision Log Revision Log


Revision 548 - (show annotations)
Tue Apr 20 20:38:36 2010 UTC (10 years, 8 months ago) by siliconforks
File MIME type: text/html
File size: 2464 byte(s)
Update to JsUnit 2.2.

1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
2 <html>
3
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6 <title>JsUnit Test Runner</title>
7 <script language="JavaScript" type="text/javascript" src="app/jsUnitCore.js"></script>
8 <script language="JavaScript" type="text/javascript" src="app/jsUnitTestManager.js"></script>
9 <script language="JavaScript" type="text/javascript" src="app/BaseUiManager.js"></script>
10 <script language="JavaScript" type="text/javascript" src="app/ClassicUiManager.js"></script>
11 <script language="JavaScript" type="text/javascript" src="app/ModernUiManager.js"></script>
12 <script language="JavaScript" type="text/javascript" src="app/jsUnitParams.js"></script>
13 <script language="JavaScript" type="text/javascript" src="app/jsUnitTracer.js"></script>
14 <script language="JavaScript" type="text/javascript">
15
16 var params = new JsUnit.Params(document.location.search);
17 var testManager;
18 var tracer;
19
20 function resetTestManager() {
21 testManager = new JsUnitTestManager(params);
22 tracer = new JsUnitTracer(testManager, params);
23 }
24
25 resetTestManager();
26
27 function onLoadHandler() {
28 testManager.onLoad();
29 testManager.maybeRun();
30 }
31
32 function startTests() {
33 testManager.kickOffTests();
34 }
35
36 function stopTests() {
37 testManager.abort();
38 resetTestManager();
39 testManager.onLoad();
40 }
41
42 var uiFrameUrl = testManager.getUiFrameUrl();
43
44 document.open();
45 document.write(
46 '<frameset id="testRunnerFrameset" rows="*,0,0,0" border="0" onload="onLoadHandler()">' + "\n" +
47 ' <frame frameborder="0" name="mainFrame" src="' + uiFrameUrl + '">' + "\n" +
48 ' <frame frameborder="0" name="mainResults" src="./app/main-results.html">' + "\n" +
49 ' <frame frameborder="0" name="documentLoader" src="./app/main-loader.html">' + "\n" +
50 ' <frame frameborder="0" name="testContainer" src="./app/testContainer.html">' + "\n" +
51 ' <noframes>' + "\n" +
52 ' <body>' + "\n" +
53 ' <p>Sorry, JsUnit requires support for frames.</p>' + "\n" +
54 ' </body>' + "\n" +
55 ' </noframes>' + "\n" +
56 '</frameset>'
57 );
58 document.close();
59
60 </script>
61 </head>
62
63 <body>
64 <noscript>Sorry, JsUnit requires JavaScript.</noscript>
65 </body>
66
67 </html>

  ViewVC Help
Powered by ViewVC 1.1.24