aboutsummaryrefslogtreecommitdiffstats
path: root/tools/node_modules/expresso/deps/jscoverage/doc/example-jsunit/test.html
diff options
context:
space:
mode:
Diffstat (limited to 'tools/node_modules/expresso/deps/jscoverage/doc/example-jsunit/test.html')
-rw-r--r--tools/node_modules/expresso/deps/jscoverage/doc/example-jsunit/test.html25
1 files changed, 25 insertions, 0 deletions
diff --git a/tools/node_modules/expresso/deps/jscoverage/doc/example-jsunit/test.html b/tools/node_modules/expresso/deps/jscoverage/doc/example-jsunit/test.html
new file mode 100644
index 0000000..0d4d9bc
--- /dev/null
+++ b/tools/node_modules/expresso/deps/jscoverage/doc/example-jsunit/test.html
@@ -0,0 +1,25 @@
+<html>
+<head>
+<title>Test</title>
+
+<script type="text/javascript" src="jsunit/app/jsUnitCore.js"></script>
+<script type="text/javascript" src="script.js"></script>
+<script type="text/javascript">
+function test_f() {
+ assert(f());
+}
+
+/*
+This code automatically stores coverage reports when running under
+jscoverage-server.
+*/
+function tearDownPage() {
+ if (window.jscoverage_report) {
+ jscoverage_report();
+ }
+}
+</script>
+</head>
+<body>
+</body>
+</html>