Tests: Avoid use of QUnit.reset() in tests by splitting them

Closes gh-1470
Ref #1457
This commit is contained in:
cjqed
2013-12-24 11:35:41 -05:00
committed by Oleg
parent 3140d3bdd3
commit 305eefe6ab
7 changed files with 564 additions and 226 deletions

View File

@@ -592,7 +592,6 @@ test("jQuery('html')", function() {
var s, div, j;
QUnit.reset();
jQuery["foo"] = false;
s = jQuery("<script>jQuery.foo='test';</script>")[0];
ok( s, "Creating a script" );
@@ -608,7 +607,6 @@ test("jQuery('html')", function() {
equal( div.childNodes[1].nodeType, 1, "Paragraph." );
equal( div.childNodes[1].firstChild.nodeType, 3, "Paragraph text." );
QUnit.reset();
ok( jQuery("<link rel='stylesheet'/>")[0], "Creating a link" );
ok( !jQuery("<script/>")[0].parentNode, "Create a script" );