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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 273 - (hide annotations)
Thu Oct 9 04:33:02 2008 UTC (11 years, 3 months ago) by siliconforks
File MIME type: text/html
File size: 483 byte(s)
Add example of storing coverage reports programmatically.
1 siliconforks 30 <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 siliconforks 273
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 siliconforks 30 </script>
22     </head>
23     <body>
24     </body>
25     </html>

  ViewVC Help
Powered by ViewVC 1.1.24