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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 273 - (show annotations)
Thu Oct 9 04:33:02 2008 UTC (10 years, 10 months ago) by siliconforks
File MIME type: text/html
File size: 483 byte(s)
Add example of storing coverage reports programmatically.
1 <html>
2 <head>
3 <title>Test</title>
4
5 <script type="text/javascript" src="jsunit/app/jsUnitCore.js"></script>
6 <script type="text/javascript" src="script.js"></script>
7 <script type="text/javascript">
8 function test_f() {
9 assert(f());
10 }
11
12 /*
13 This code automatically stores coverage reports when running under
14 jscoverage-server.
15 */
16 function tearDownPage() {
17 if (window.jscoverage_report) {
18 jscoverage_report();
19 }
20 }
21 </script>
22 </head>
23 <body>
24 </body>
25 </html>

  ViewVC Help
Powered by ViewVC 1.1.24