From: Michał Gołębiowski Date: Sat, 7 Sep 2013 00:46:55 +0000 (+0200) Subject: No ticket. Restore some parsing tests in core. (cherry-picked from 650f325d8e5e9092cd... X-Git-Tag: 1.11.0-beta2~25 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b349731e57608de75b00893261452e376b29df99;p=jquery.git No ticket. Restore some parsing tests in core. (cherry-picked from 650f325d8e5e9092cd8ca7c1a7ab62c4bba582cf) --- diff --git a/test/unit/core.js b/test/unit/core.js index 5cfb136a1..7bd126148 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -588,7 +588,7 @@ test("isWindow", function() { }); test("jQuery('html')", function() { - expect( 15 ); + expect( 18 ); var s, div, j; @@ -623,10 +623,13 @@ test("jQuery('html')", function() { ok( jQuery("
")[0], "Create a div with closing tag." ); ok( jQuery("
")[0], "Create a table with closing tag." ); - // equal( jQuery("element[attribute='
']").length, 0, "When html is within brackets, do not recognize as html." ); - // equal( jQuery("element[attribute=
]").length, 0, "When html is within brackets, do not recognize as html." ); - // equal( jQuery("element:not(
)").length, 0, "When html is within parens, do not recognize as html." ); - // equal( jQuery("\\").length, 0, "Ignore escaped html characters" ); + equal( jQuery( "element[attribute='
']" ).length, 0, + "When html is within brackets, do not recognize as html." ); + //equal( jQuery( "element[attribute=
]" ).length, 0, + // "When html is within brackets, do not recognize as html." ); + equal( jQuery( "element:not(
)" ).length, 0, + "When html is within parens, do not recognize as html." ); + equal( jQuery( "\\" ).length, 0, "Ignore escaped html characters" ); }); test("jQuery('massive html #7990')", function() {