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
f20c9746
Commit
f20c9746
authored
Feb 17, 2009
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tweaked some of the selector tests to handle some of the test page changes.
parent
f89f5eb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
selector.js
test/unit/selector.js
+4
-4
No files found.
test/unit/selector.js
View file @
f20c9746
...
@@ -326,7 +326,7 @@ test("pseudo (:) selectors", function() {
...
@@ -326,7 +326,7 @@ test("pseudo (:) selectors", function() {
t
(
"Text Contains"
,
"a:contains('Google Groups (Link)')"
,
[
"groups"
]
);
t
(
"Text Contains"
,
"a:contains('Google Groups (Link)')"
,
[
"groups"
]
);
t
(
"Text Contains"
,
"a:contains('(Link)')"
,
[
"groups"
]
);
t
(
"Text Contains"
,
"a:contains('(Link)')"
,
[
"groups"
]
);
t
(
"Element Preceded By"
,
"p ~ div"
,
[
"foo"
,
"fx-queue"
,
"fx-tests"
,
"moretests"
,
"tabindex-tests"
,
"liveHandlerOrder"
]
);
t
(
"Element Preceded By"
,
"p ~ div"
,
[
"foo"
,
"moretests"
,
"tabindex-tests"
,
"liveHandlerOrder"
]
);
t
(
"Not"
,
"a.blog:not(.link)"
,
[
"mark"
]
);
t
(
"Not"
,
"a.blog:not(.link)"
,
[
"mark"
]
);
t
(
"Not - multiple"
,
"#form option:not(:contains('Nothing'),#option1b,:selected)"
,
[
"option1c"
,
"option1d"
,
"option2b"
,
"option2c"
,
"option3d"
,
"option3e"
]
);
t
(
"Not - multiple"
,
"#form option:not(:contains('Nothing'),#option1b,:selected)"
,
[
"option1c"
,
"option1d"
,
"option2b"
,
"option2c"
,
"option3d"
,
"option3e"
]
);
//t( "Not - complex", "#form option:not([id^='opt']:nth-child(-n+3))", [ "option1a", "option1d", "option2d", "option3d", "option3e"] );
//t( "Not - complex", "#form option:not([id^='opt']:nth-child(-n+3))", [ "option1a", "option1d", "option2d", "option3d", "option3e"] );
...
@@ -358,7 +358,7 @@ test("pseudo (:) selectors", function() {
...
@@ -358,7 +358,7 @@ test("pseudo (:) selectors", function() {
t
(
"Position Less Than"
,
"p:lt(3)"
,
[
"firstp"
,
"ap"
,
"sndp"
]
);
t
(
"Position Less Than"
,
"p:lt(3)"
,
[
"firstp"
,
"ap"
,
"sndp"
]
);
t
(
"Is A Parent"
,
"p:parent"
,
[
"firstp"
,
"ap"
,
"sndp"
,
"en"
,
"sap"
,
"first"
]
);
t
(
"Is A Parent"
,
"p:parent"
,
[
"firstp"
,
"ap"
,
"sndp"
,
"en"
,
"sap"
,
"first"
]
);
t
(
"Is Visible"
,
"#form input:visible"
,
[]
);
t
(
"Is Visible"
,
"#form input:visible"
,
[]
);
t
(
"Is Visible"
,
"div:visible:not(.testrunner-toolbar)"
,
[
"nothiddendiv"
,
"nothiddendivchild"
]
);
t
(
"Is Visible"
,
"div:visible:not(.testrunner-toolbar)
:lt(2)
"
,
[
"nothiddendiv"
,
"nothiddendivchild"
]
);
t
(
"Is Hidden"
,
"#form input:hidden"
,
[
"text1"
,
"text2"
,
"radio1"
,
"radio2"
,
"check1"
,
"check2"
,
"hidden1"
,
"hidden2"
,
"name"
]
);
t
(
"Is Hidden"
,
"#form input:hidden"
,
[
"text1"
,
"text2"
,
"radio1"
,
"radio2"
,
"check1"
,
"check2"
,
"hidden1"
,
"hidden2"
,
"name"
]
);
t
(
"Is Hidden"
,
"#main:hidden"
,
[
"main"
]
);
t
(
"Is Hidden"
,
"#main:hidden"
,
[
"main"
]
);
t
(
"Is Hidden"
,
"#dl:hidden"
,
[
"dl"
]
);
t
(
"Is Hidden"
,
"#dl:hidden"
,
[
"dl"
]
);
...
@@ -374,8 +374,8 @@ test("pseudo (:) selectors", function() {
...
@@ -374,8 +374,8 @@ test("pseudo (:) selectors", function() {
t
(
"Check position filtering"
,
"div.nothiddendiv:not(:lt(0))"
,
[
"nothiddendiv"
]
);
t
(
"Check position filtering"
,
"div.nothiddendiv:not(:lt(0))"
,
[
"nothiddendiv"
]
);
t
(
"Check element position"
,
"div div:eq(0)"
,
[
"nothiddendivchild"
]
);
t
(
"Check element position"
,
"div div:eq(0)"
,
[
"nothiddendivchild"
]
);
t
(
"Check element position"
,
"div div:eq(5)"
,
[
"
fadeout
"
]
);
t
(
"Check element position"
,
"div div:eq(5)"
,
[
"
t2037
"
]
);
t
(
"Check element position"
,
"div div:eq(27)"
,
[
"
t2037
"
]
);
t
(
"Check element position"
,
"div div:eq(27)"
,
[
"
hide
"
]
);
t
(
"Check element position"
,
"div div:first"
,
[
"nothiddendivchild"
]
);
t
(
"Check element position"
,
"div div:first"
,
[
"nothiddendivchild"
]
);
t
(
"Check element position"
,
"div > div:first"
,
[
"nothiddendivchild"
]
);
t
(
"Check element position"
,
"div > div:first"
,
[
"nothiddendivchild"
]
);
t
(
"Check element position"
,
"#dl div:first div:first"
,
[
"foo"
]
);
t
(
"Check element position"
,
"#dl div:first div:first"
,
[
"foo"
]
);
...
...
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