Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rearranged for clearer examples

  • Loading branch information...
commit babfd1f1bd99bb0fc3a9ae029afe1d2338beb7e1 1 parent 7011bd5
Benjamin Lee authored
Showing with 9 additions and 8 deletions.
  1. +4 −4 rhino.js → rhino/suite.js
  2. +5 −4 { → web}/index.html
8 rhino.js → rhino/suite.js
View
@@ -1,5 +1,5 @@
-load("qunit/qunit/qunit.js");
-load("src/myLib.js");
+load("../qunit/qunit/qunit.js");
+load("../src/myLib.js");
var stop_watch = {
start_time: null, stop_time: null,
@@ -92,8 +92,8 @@ var stop_watch = {
})();
// run the tests
-load("test/myLibTest.js");
-load("qunit/test/test.js");
+load("../test/myLibTest.js");
+load("../qunit/test/test.js");
QUnit.begin(); // hacked b/c currently QUnit.begin is normally called on document.load
QUnit.start();
9 index.html → web/index.html
View
@@ -5,15 +5,16 @@
<link rel="stylesheet" href="../qunit/qunit/qunit.css" type="text/css"/>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"> </script>
<script type="text/javascript" src="../qunit/qunit/qunit.js"></script>
- <script type="text/javascript" src="myLib.js"></script>
- <script type="text/javascript" src="myLibTest.js"></script>
+ <script type="text/javascript" src="../qunit/test/test.js"></script>
+ <script type="text/javascript" src="../src/myLib.js"></script>
+ <script type="text/javascript" src="../test/myLibTest.js"></script>
</head>
<body>
- <h1 id="qunit-header">QUnit example</h1>
+ <h1 id="qunit-header">Example Qunit From Browser</h1>
<h2 id="qunit-banner"></h2>
<div id="qunit-testrunner-toolbar"></div>
<h2 id="qunit-userAgent"></h2>
<ol id="qunit-tests"></ol>
- <div id="qunit-fixture">test markup, will be hidden</div>
+ <div id="qunit-fixture">test markup</div>
</body>
</html>
Please sign in to comment.
Something went wrong with that request. Please try again.