Browse files

Add runner.html and ditch Node.js 0.6.0 support

  • Loading branch information...
1 parent 71c4ecb commit 792a2dbbcc58d71aa69185bbc70108ecf0c6f490 @kenhkan kenhkan committed Jul 30, 2013
Showing with 30 additions and 2 deletions.
  1. +1 −2 .travis.yml
  2. +29 −0 spec/runner.html
View
3 .travis.yml
@@ -1,8 +1,7 @@
language: node_js
node_js:
- - 0.6
- 0.8
- - 0.10
+ - "0.10"
script: npm test
View
29 spec/runner.html
@@ -0,0 +1,29 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <meta charset="utf-8">
+ <title>objects in browser</title>
+ <link rel="stylesheet" href="../node_modules/mocha/mocha.css">
+ <style type="text/css">
+ #fixtures {
+ display: none;
+ }
+ </style>
+ </head>
+ <body>
+ <div id="mocha"></div>
+ <div id="fixtures"></div>
+ <script src="../browser/objects.js"></script>
+ <script src="http://chaijs.com/chai.js"></script>
+ <script src="../node_modules/mocha/mocha.js"></script>
+ <script>mocha.setup('bdd');</script>
+ <script>
+ if (window.mochaPhantomJS) {
+ mochaPhantomJS.run();
+ } else {
+ mocha.checkLeaks();
+ mocha.run();
+ }
+ </script>
+ </body>
+</html>

0 comments on commit 792a2db

Please sign in to comment.