X-Git-Url: http://git.asbjorn.biz/?p=jquery.git;a=blobdiff_plain;f=test%2Funit%2Fselector.js;h=3d83737a3373bad0f839a88d9afe4bef826eff45;hp=eafd2485cd5c6e1b7af20d8121d6e7d1c173bd9b;hb=1e4f3c07c70861fc334a0e61080f8bbde0d7d442;hpb=e00f74c43bf58132be01c6417c6126a5bc085899 diff --git a/test/unit/selector.js b/test/unit/selector.js index eafd248..3d83737 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -264,7 +264,7 @@ test("child and adjacent", function() { }); test("attributes", function() { - expect(41); + expect(43); t( "Attribute Exists", "a[title]", ["google"] ); t( "Attribute Exists", "*[title]", ["google"] ); @@ -330,6 +330,15 @@ test("attributes", function() { t("Find escaped attribute value", "input[name=foo\\[baz\\]]", ["attrbad2"]); attrbad.remove(); + + //#6428 + t("Find escaped attribute value", "#form input[name=foo\\[bar\\]]", ["hidden2"]); + + //#3279 + var div = document.createElement("div"); + div.innerHTML = "
"; + + deepEqual( jQuery( "[xml\\:test]", div ).get(), [ div.firstChild ], "Finding by attribute with escaped characters." ); }); test("pseudo - child", function() {