@@ -601,7 +601,7 @@ test("isWindow", function() {
601
601
} ) ;
602
602
603
603
test ( "jQuery('html')" , function ( ) {
604
- expect ( 18 ) ;
604
+ expect ( 15 ) ;
605
605
606
606
QUnit . reset ( ) ;
607
607
jQuery [ "foo" ] = false ;
@@ -638,19 +638,22 @@ test("jQuery('html')", function() {
638
638
// equal( jQuery("element[attribute=<div></div>]").length, 0, "When html is within brackets, do not recognize as html." );
639
639
// equal( jQuery("element:not(<div></div>)").length, 0, "When html is within parens, do not recognize as html." );
640
640
// equal( jQuery("\\<div\\>").length, 0, "Ignore escaped html characters" );
641
+ } ) ;
642
+
643
+ test ( "jQuery('massive html #7990')" , function ( ) {
644
+ expect ( 3 ) ;
641
645
642
- // Test very large html string #7990
643
646
var i ;
644
- var li = "<li>very large html string</li>" ;
647
+ var li = "<li>very very very very large html string</li>" ;
645
648
var html = [ "<ul>" ] ;
646
- for ( i = 0 ; i < 50000 ; i += 1 ) {
649
+ for ( i = 0 ; i < 30000 ; i += 1 ) {
647
650
html [ html . length ] = li ;
648
651
}
649
652
html [ html . length ] = "</ul>" ;
650
653
html = jQuery ( html . join ( "" ) ) [ 0 ] ;
651
654
equal ( html . nodeName . toLowerCase ( ) , "ul" ) ;
652
655
equal ( html . firstChild . nodeName . toLowerCase ( ) , "li" ) ;
653
- equal ( html . childNodes . length , 50000 ) ;
656
+ equal ( html . childNodes . length , 30000 ) ;
654
657
} ) ;
655
658
656
659
test ( "jQuery('html', context)" , function ( ) {
0 commit comments