Skip to content
Permalink
Browse files

Break big-html check into its own test for IE6.

  • Loading branch information...
dmethvin committed Oct 10, 2012
1 parent 7e8b854 commit fde2e44f864c1bb4b8476ccdd7cd16b5c0115860
Showing with 8 additions and 5 deletions.
  1. +8 −5 test/unit/core.js
@@ -601,7 +601,7 @@ test("isWindow", function() {
});

test("jQuery('html')", function() {
expect( 18 );
expect( 15 );

QUnit.reset();
jQuery["foo"] = false;
@@ -638,19 +638,22 @@ test("jQuery('html')", function() {
// equal( jQuery("element[attribute=<div></div>]").length, 0, "When html is within brackets, do not recognize as html." );
// equal( jQuery("element:not(<div></div>)").length, 0, "When html is within parens, do not recognize as html." );
// equal( jQuery("\\<div\\>").length, 0, "Ignore escaped html characters" );
});

test("jQuery('massive html #7990')", function() {
expect( 3 );

// Test very large html string #7990
var i;
var li = "<li>very large html string</li>";
var li = "<li>very very very very large html string</li>";
var html = ["<ul>"];
for ( i = 0; i < 50000; i += 1 ) {
for ( i = 0; i < 30000; i += 1 ) {
html[html.length] = li;
}
html[html.length] = "</ul>";
html = jQuery(html.join(""))[0];
equal( html.nodeName.toLowerCase(), "ul");
equal( html.firstChild.nodeName.toLowerCase(), "li");
equal( html.childNodes.length, 50000 );
equal( html.childNodes.length, 30000 );
});

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

0 comments on commit fde2e44

Please sign in to comment.
You can’t perform that action at this time.