Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
夏彬
jquery
Commits
1e4f3c07
Commit
1e4f3c07
authored
Jan 28, 2011
by
Anton M
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pull over tests from Sizzle. Fixes #3729. Fixes #6428.
parent
e00f74c4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
selector.js
test/unit/selector.js
+10
-1
No files found.
test/unit/selector.js
View file @
1e4f3c07
...
@@ -264,7 +264,7 @@ test("child and adjacent", function() {
...
@@ -264,7 +264,7 @@ test("child and adjacent", function() {
});
});
test
(
"attributes"
,
function
()
{
test
(
"attributes"
,
function
()
{
expect
(
4
1
);
expect
(
4
3
);
t
(
"Attribute Exists"
,
"a[title]"
,
[
"google"
]
);
t
(
"Attribute Exists"
,
"a[title]"
,
[
"google"
]
);
t
(
"Attribute Exists"
,
"*[title]"
,
[
"google"
]
);
t
(
"Attribute Exists"
,
"*[title]"
,
[
"google"
]
);
...
@@ -330,6 +330,15 @@ test("attributes", function() {
...
@@ -330,6 +330,15 @@ test("attributes", function() {
t
(
"Find escaped attribute value"
,
"input[name=foo
\\
[baz
\\
]]"
,
[
"attrbad2"
]);
t
(
"Find escaped attribute value"
,
"input[name=foo
\\
[baz
\\
]]"
,
[
"attrbad2"
]);
attrbad
.
remove
();
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
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment