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:
Ariel Flesler 2009-01-09 23:49:18 +00:00
parent ec7baf230d
commit d62875fb01
7 changed files with 108 additions and 125 deletions

View file

@ -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>

View file

@ -1,3 +1,3 @@
var foobar = "bar";
jQuery.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[ */
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>

View file

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