aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorAnton M <obhvsbypqghgc@gmail.com>2011-01-28 01:50:39 +0100
committerAnton M <obhvsbypqghgc@gmail.com>2011-01-28 01:50:39 +0100
commit1e4f3c07c70861fc334a0e61080f8bbde0d7d442 (patch)
tree2e388d84d1d3c992db28e2c530c61003e183d48a /test/unit
parente00f74c43bf58132be01c6417c6126a5bc085899 (diff)
downloadjquery-1e4f3c07c70861fc334a0e61080f8bbde0d7d442.tar.gz
jquery-1e4f3c07c70861fc334a0e61080f8bbde0d7d442.zip
Pull over tests from Sizzle. Fixes #3729. Fixes #6428.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/selector.js11
1 files changed, 10 insertions, 1 deletions
diff --git a/test/unit/selector.js b/test/unit/selector.js
index eafd2485c..3d83737a3 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 = "<div id='foo' xml:test='something'></div>";
+
+ deepEqual( jQuery( "[xml\\:test]", div ).get(), [ div.firstChild ], "Finding by attribute with escaped characters." );
});
test("pseudo - child", function() {