Generate code coverage with Istanbul
[dygraphs.git] / auto_tests / runner.html
index 7102a95..c3a3d87 100644 (file)
 
   <script>
     mocha.checkLeaks();
-    mocha.run();
+    if (window.mochaPhantomJS) {
+      mochaPhantomJS.run();
+    } else {
+      mocha.run();
+    }
   </script>
 </body>
 </html>