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
4694e537
Commit
4694e537
authored
Jan 05, 2009
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Forgot to merge in some of the new tests from Sizzle.
parent
cc66e6af
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
index.html
test/index.html
+7
-0
core.js
test/unit/core.js
+1
-1
No files found.
test/index.html
View file @
4694e537
...
...
@@ -112,6 +112,13 @@
<input
type=
"text"
id=
"idTest"
name=
"id"
/>
</form>
<table
id=
"table"
></table>
<form
id=
"name-tests"
>
<!-- Inputs with a grouped name attribute. -->
<input
name=
"types[]"
id=
"types_all"
type=
"checkbox"
value=
"all"
/>
<input
name=
"types[]"
id=
"types_anime"
type=
"checkbox"
value=
"anime"
/>
<input
name=
"types[]"
id=
"types_movie"
type=
"checkbox"
value=
"movie"
/>
</form>
<div
id=
"fx-queue"
>
<div
id=
"fadein"
class=
'chain test'
>
fadeIn
<div>
fadeIn
</div></div>
...
...
test/unit/core.js
View file @
4694e537
...
...
@@ -1379,7 +1379,7 @@ test("siblings([String])", function() {
isSet
(
jQuery
(
"#en"
).
siblings
().
get
(),
q
(
"sndp"
,
"sap"
),
"Check for siblings"
);
isSet
(
jQuery
(
"#sndp"
).
siblings
(
":has(code)"
).
get
(),
q
(
"sap"
),
"Check for filtered siblings (has code child element)"
);
isSet
(
jQuery
(
"#sndp"
).
siblings
(
":has(a)"
).
get
(),
q
(
"en"
,
"sap"
),
"Check for filtered siblings (has anchor child element)"
);
isSet
(
jQuery
(
"#foo"
).
siblings
(
"form, b"
).
get
(),
q
(
"form"
,
"lengthtest"
,
"testForm"
,
"floatTest"
),
"Check for multiple filters"
);
isSet
(
jQuery
(
"#foo"
).
siblings
(
"form, b"
).
get
(),
q
(
"form"
,
"lengthtest"
,
"
name-tests"
,
"
testForm"
,
"floatTest"
),
"Check for multiple filters"
);
var
set
=
document
.
querySelectorAll
?
q
(
"en"
,
"sap"
,
"sndp"
)
:
q
(
"sndp"
,
"sap"
,
"en"
);
isSet
(
jQuery
(
"#en, #sndp"
).
siblings
().
get
(),
set
,
"Check for unique results from siblings"
);
});
...
...
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