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:
parent
d62875fb01
commit
afb05081c0
6 changed files with 54 additions and 30 deletions
|
@ -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>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
jQuery.foobar = "bar";
|
||||
foobar = "bar";
|
||||
jQuery('#ap').html('bar');
|
||||
ok( true, "test.js executed");
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script type="text/javascript">
|
||||
jQuery.testFoo = "foo";
|
||||
testFoo = "foo";
|
||||
jQuery('#foo').html('foo');
|
||||
ok( true, "test2.html executed" );
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue