Skip to content

Commit

Permalink
break out prototype test into a different; seems to cause problems un…
Browse files Browse the repository at this point in the history
…der qunit
  • Loading branch information
smparkes committed Oct 16, 2009
1 parent 91fe6b8 commit 96f6067
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build.xml
Expand Up @@ -180,6 +180,10 @@
<arg value="test/envjs-call-load-test.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
</java>
<java fork="true" jar="${RHINO_JAR}" failonerror="true">
<arg value="test/prototype.js"/>
<jvmarg value="-Dfile.encoding=utf-8"/>
</java>
</target>

</project>
19 changes: 19 additions & 0 deletions test/prototype.js
@@ -0,0 +1,19 @@
whichJarFile = "rhino"
whichInterpreter = whichJarFile + " interpreter jar";
multiwindow = false;
load("dist/env.rhino.js");
load("test/qunit.js");

window.addEventListener("load",function(){
print("\n\nTesting with " + whichInterpreter);
print("Handling onload for test.js");
print("Loading tests.");

load("test/unit/prototypecompat.js");

print("Load complete. Running tests.");
});

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

Envjs.wait(0);

0 comments on commit 96f6067

Please sign in to comment.