git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e00f74c
)
Pull over tests from Sizzle. Fixes #3729. Fixes #6428.
author
Anton M
<obhvsbypqghgc@gmail.com>
Fri, 28 Jan 2011 00:50:39 +0000
(
01:50
+0100)
committer
Anton M
<obhvsbypqghgc@gmail.com>
Fri, 28 Jan 2011 00:50:39 +0000
(
01:50
+0100)
test/unit/selector.js
patch
|
blob
|
history
diff --git
a/test/unit/selector.js
b/test/unit/selector.js
index
eafd248
..
3d83737
100644
(file)
--- a/
test/unit/selector.js
+++ b/
test/unit/selector.js
@@
-264,7
+264,7
@@
test("child and adjacent", function() {
});
test("attributes", function() {
});
test("attributes", function() {
- expect(41);
+ expect(43);
t( "Attribute Exists", "a[title]", ["google"] );
t( "Attribute Exists", "*[title]", ["google"] );
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();
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() {
});
test("pseudo - child", function() {