Create a gist now

Instantly share code, notes, and snippets.

phantomjs qunit

For this example

  • install phantomjs
  • install twisted
  • make an empty directory
  • download qunit.js and qunit.css into that directory
  • download into that directory
  • add index.html and tests.js from below to that directory
  • run twistd web --path=. --port=8080 && phantomjs run-qunit.js http://localhost:8080 && kill `cat`
<!DOCTYPE html>
<meta charset="utf-8">
<title>QUnit Example</title>
<link rel="stylesheet" href="/qunit.css">
<div id="qunit"></div>
<script src="/qunit.js"></script>
<script src="/tests.js"></script>
test( "hello test", function() {
ok( 1 == "1", "Passed!" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment