Skip to content

Commit fde2e44

Browse files
committed
Break big-html check into its own test for IE6.
1 parent 7e8b854 commit fde2e44

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

test/unit/core.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -601,7 +601,7 @@ test("isWindow", function() {
601601
});
602602

603603
test("jQuery('html')", function() {
604-
expect( 18 );
604+
expect( 15 );
605605

606606
QUnit.reset();
607607
jQuery["foo"] = false;
@@ -638,19 +638,22 @@ test("jQuery('html')", function() {
638638
// equal( jQuery("element[attribute=<div></div>]").length, 0, "When html is within brackets, do not recognize as html." );
639639
// equal( jQuery("element:not(<div></div>)").length, 0, "When html is within parens, do not recognize as html." );
640640
// equal( jQuery("\\<div\\>").length, 0, "Ignore escaped html characters" );
641+
});
642+
643+
test("jQuery('massive html #7990')", function() {
644+
expect( 3 );
641645

642-
// Test very large html string #7990
643646
var i;
644-
var li = "<li>very large html string</li>";
647+
var li = "<li>very very very very large html string</li>";
645648
var html = ["<ul>"];
646-
for ( i = 0; i < 50000; i += 1 ) {
649+
for ( i = 0; i < 30000; i += 1 ) {
647650
html[html.length] = li;
648651
}
649652
html[html.length] = "</ul>";
650653
html = jQuery(html.join(""))[0];
651654
equal( html.nodeName.toLowerCase(), "ul");
652655
equal( html.firstChild.nodeName.toLowerCase(), "li");
653-
equal( html.childNodes.length, 50000 );
656+
equal( html.childNodes.length, 30000 );
654657
});
655658

656659
test("jQuery('html', context)", function() {

0 commit comments

Comments
 (0)