Skip to content
Permalink
Browse files

No ticket. Restore some parsing tests in core.

  • Loading branch information...
mgol committed Sep 7, 2013
1 parent d0fadbb commit 650f325d8e5e9092cd8ca7c1a7ab62c4bba582cf
Showing with 8 additions and 5 deletions.
  1. +8 −5 test/unit/core.js
@@ -585,7 +585,7 @@ test("isWindow", function() {
});

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

var s, div, j;

@@ -620,10 +620,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() {

0 comments on commit 650f325

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