Skip to content

Commit

Permalink
Add runner.html and ditch Node.js 0.6.0 support
Browse files Browse the repository at this point in the history
  • Loading branch information
kenhkan committed Jul 30, 2013
1 parent 71c4ecb commit 792a2db
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .travis.yml
@@ -1,8 +1,7 @@
language: node_js
node_js:
- 0.6
- 0.8
- 0.10
- "0.10"

script: npm test

Expand Down
29 changes: 29 additions & 0 deletions 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.