mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Tests: Avoid use of QUnit.reset() in tests by splitting them
Closes gh-1470 Ref #1457
This commit is contained in:
@@ -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" );
|
||||
|
||||
Reference in New Issue
Block a user