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
2ea57c10
Commit
2ea57c10
authored
Oct 30, 2014
by
Michał Gołębiowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test: Switch leftover andSelf to addBack
parent
f1913cf0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
effects.js
test/unit/effects.js
+1
-1
traversing.js
test/unit/traversing.js
+2
-2
No files found.
test/unit/effects.js
View file @
2ea57c10
...
@@ -1687,7 +1687,7 @@ test( "hide should not leave hidden inline elements visible (#14848)", 2, functi
...
@@ -1687,7 +1687,7 @@ test( "hide should not leave hidden inline elements visible (#14848)", 2, functi
});
});
test
(
"Handle queue:false promises"
,
10
,
function
()
{
test
(
"Handle queue:false promises"
,
10
,
function
()
{
var
foo
=
jQuery
(
"#foo"
).
clone
().
a
ndSelf
(),
var
foo
=
jQuery
(
"#foo"
).
clone
().
a
ddBack
(),
step
=
1
;
step
=
1
;
foo
.
animate
({
foo
.
animate
({
...
...
test/unit/traversing.js
View file @
2ea57c10
...
@@ -10,7 +10,7 @@ test( "find(String) under non-elements", function() {
...
@@ -10,7 +10,7 @@ test( "find(String) under non-elements", function() {
var
j
=
jQuery
(
"#nonnodes"
).
contents
();
var
j
=
jQuery
(
"#nonnodes"
).
contents
();
equal
(
j
.
find
(
"div"
).
length
,
0
,
"Check node,textnode,comment to find zero divs"
);
equal
(
j
.
find
(
"div"
).
length
,
0
,
"Check node,textnode,comment to find zero divs"
);
equal
(
j
.
find
(
"div"
).
a
ndSelf
().
length
,
3
,
"Check node,textnode,comment to find zero divs, but preserves pushStack"
);
equal
(
j
.
find
(
"div"
).
a
ddBack
().
length
,
3
,
"Check node,textnode,comment to find zero divs, but preserves pushStack"
);
});
});
test
(
"find(leading combinator)"
,
function
()
{
test
(
"find(leading combinator)"
,
function
()
{
...
@@ -47,7 +47,7 @@ test( "find(node|jQuery object)", function() {
...
@@ -47,7 +47,7 @@ test( "find(node|jQuery object)", function() {
equal
(
$two
.
find
(
$first
).
length
,
0
,
"first is in the collection and not within two"
);
equal
(
$two
.
find
(
$first
).
length
,
0
,
"first is in the collection and not within two"
);
equal
(
$two
.
find
(
$first
).
length
,
0
,
"first is in the collection and not within two(node)"
);
equal
(
$two
.
find
(
$first
).
length
,
0
,
"first is in the collection and not within two(node)"
);
equal
(
$two
.
find
(
$foo
[
0
]
).
a
ndSelf
().
length
,
2
,
"find preserves the pushStack, see #12009"
);
equal
(
$two
.
find
(
$foo
[
0
]
).
a
ddBack
().
length
,
2
,
"find preserves the pushStack, see #12009"
);
});
});
test
(
"is(String|undefined)"
,
function
()
{
test
(
"is(String|undefined)"
,
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