testrunner: Removing every global variable leaked within (and outside) tests. Some were deleted and some saved within the jQuery namespace.
This commit is contained in:
parent
ec7baf230d
commit
d62875fb01
7 changed files with 108 additions and 125 deletions
|
@ -1,6 +1,6 @@
|
|||
html text<br/>
|
||||
<script type="text/javascript">/* <![CDATA[ */
|
||||
testFoo = "foo"; jQuery('#foo').html('foo');
|
||||
jQuery.testFoo = "foo"; jQuery('#foo').html('foo');
|
||||
ok( true, "test.html executed" );
|
||||
/* ]]> */</script>
|
||||
<script src="data/test.js"></script>
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
var foobar = "bar";
|
||||
jQuery.foobar = "bar";
|
||||
jQuery('#ap').html('bar');
|
||||
ok( true, "test.js executed");
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
html text<br/>
|
||||
<script type="text/javascript">/* <![CDATA[ */
|
||||
testFoo = "foo"; jQuery('#foo').html('foo');
|
||||
jQuery.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">
|
||||
var testFoo = "foo";
|
||||
jQuery.testFoo = "foo";
|
||||
jQuery('#foo').html('foo');
|
||||
ok( true, "test2.html executed" );
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue