spelling fixes
[dygraphs.git] / auto_tests / runner.html
index 7102a95..7ceb0d0 100644 (file)
@@ -3,14 +3,12 @@
   <meta charset="utf-8">
   <title>dygraphs tests</title>
   <link rel="stylesheet" href="../node_modules/mocha/mocha.css" />
+  <link rel="stylesheet" href="../css/dygraph.css" />
 </head>
 <body>
   <div id="graph"></div>
   <div id="mocha"></div>
 
-  <!-- Polyfills for PhantomJS -->
-  <script src="../node_modules/babel-core/browser-polyfill.js"></script>
-
   <!-- Mocha -->
   <script src="../node_modules/mocha/mocha.js"></script>
   <script src="../node_modules/chai/chai.js"></script>
 
   <script>
     mocha.checkLeaks();
-    mocha.run();
+    if (window.mochaPhantomJS) {
+      mochaPhantomJS.run();
+    } else {
+      mocha.run();
+    }
   </script>
 </body>
 </html>