aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichał Gołębiowski <m.goleb@gmail.com>2013-09-07 02:46:55 +0200
committerMichał Gołębiowski <m.goleb@gmail.com>2013-11-10 21:15:07 +0100
commitb349731e57608de75b00893261452e376b29df99 (patch)
tree49cb729bb56ab1f6f6446b7e10254e90ac93478c
parent7c38b0686d1e558715c8cff8bcfa538aca146b8e (diff)
downloadjquery-b349731e57608de75b00893261452e376b29df99.tar.gz
jquery-b349731e57608de75b00893261452e376b29df99.zip
No ticket. Restore some parsing tests in core. (cherry-picked from 650f325d8e5e9092cd8ca7c1a7ab62c4bba582cf)
-rw-r--r--test/unit/core.js13
1 files changed, 8 insertions, 5 deletions
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("<div></div>")[0], "Create a div with closing tag." );
ok( jQuery("<table></table>")[0], "Create a table with closing tag." );
- // equal( jQuery("element[attribute='<div></div>']").length, 0, "When html is within brackets, do not recognize as html." );
- // 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" );
+ equal( jQuery( "element[attribute='<div></div>']" ).length, 0,
+ "When html is within brackets, do not recognize as html." );
+ //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() {