Replace usage of the removed global reset() method with QUnit.reset().

This commit is contained in:
jzaefferer 2010-07-28 17:19:01 +02:00
parent c4b4df4691
commit 6f031c1015
5 changed files with 84 additions and 84 deletions

View file

@ -398,7 +398,7 @@ test("isXMLDoc - XML", function() {
test("jQuery('html')", function() {
expect(15);
reset();
QUnit.reset();
jQuery.foo = false;
var s = jQuery("<script>jQuery.foo='test';</script>")[0];
ok( s, "Creating a script" );
@ -414,7 +414,7 @@ test("jQuery('html')", function() {
equals( div.childNodes[1].nodeType, 1, "Paragraph." );
equals( div.childNodes[1].firstChild.nodeType, 3, "Paragraph text." );
reset();
QUnit.reset();
ok( jQuery("<link rel='stylesheet'/>")[0], "Creating a link" );
ok( !jQuery("<script/>")[0].parentNode, "Create a script" );