Skip to content

Commit

Permalink
More DRY'ing up of test infrastructure files. Common statements gathered
Browse files Browse the repository at this point in the history
(moved) into test/test.js.
  • Loading branch information
gleneivey committed Nov 13, 2009
1 parent 157fc80 commit 5f9a9eb
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 12 deletions.
4 changes: 0 additions & 4 deletions test/call-load-test.js
@@ -1,5 +1,3 @@
load("test/qunit.js");

Envjs("test/index.html", {});

test("'index.html' loaded correctly via 'Envjs()' call", function(){
Expand All @@ -13,5 +11,3 @@ test("window.location= following Envjs() initialization flagged as error",
function(){
expect(0);
});

Envjs.wait();
4 changes: 0 additions & 4 deletions test/primary-tests.js
@@ -1,5 +1,3 @@
load("test/qunit.js");

window.addEventListener("load",function(){
print("\n\nTesting with " + whichInterpreter);
print("Handling onload for test.js");
Expand All @@ -26,5 +24,3 @@ window.addEventListener("load",function(){
});

window.location = "test/index.html";

Envjs.wait();
4 changes: 0 additions & 4 deletions test/prototype-test.js
@@ -1,5 +1,3 @@
load("test/qunit.js");

window.addEventListener("load",function(){
print("\n\nTesting with " + whichInterpreter);
print("Handling onload for test.js");
Expand All @@ -11,5 +9,3 @@ window.addEventListener("load",function(){
});

window.location = "test/index.html";

Envjs.wait();
3 changes: 3 additions & 0 deletions test/test.js
Expand Up @@ -5,4 +5,7 @@ multiwindow = !(whichJarFile == "rhino");
whichInterpreter = whichJarFile + " interpreter jar";

load("dist/env.rhino.js");
load("test/qunit.js");
load("test/" + whichTestFile + ".js");

Envjs.wait();

0 comments on commit 5f9a9eb

Please sign in to comment.