testrunner: Putting back the global variables used for ajax tests. I added many calls to delete though. The global namespace must be cleaned up before calling start() again.

This commit is contained in:
Ariel Flesler 2009-01-10 00:16:48 +00:00
parent d62875fb01
commit afb05081c0
6 changed files with 54 additions and 30 deletions

View file

@ -1,6 +1,6 @@
html text<br/>
<script type="text/javascript">/* <![CDATA[ */
jQuery.testFoo = "foo"; jQuery('#foo').html('foo');
testFoo = "foo"; jQuery('#foo').html('foo');
ok( true, "test.html executed" );
/* ]]> */</script>
<script src="data/test.js"></script>

View file

@ -1,3 +1,3 @@
jQuery.foobar = "bar";
foobar = "bar";
jQuery('#ap').html('bar');
ok( true, "test.js executed");

View file

@ -1,6 +1,6 @@
html text<br/>
<script type="text/javascript">/* <![CDATA[ */
jQuery.testFoo = "foo"; jQuery('#foo').html('foo');
testFoo = "foo"; jQuery('#foo').html('foo');
ok( true, "test.php executed" );
/* ]]> */</script>
<script src="data/test.js?<?php srand(); echo time() . '' . rand(); ?>"></script>

View file

@ -1,5 +1,5 @@
<script type="text/javascript">
jQuery.testFoo = "foo";
testFoo = "foo";
jQuery('#foo').html('foo');
ok( true, "test2.html executed" );
</script>