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
481171a3
Commit
481171a3
authored
Feb 18, 2009
by
John Resig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed some tests that were changed (fixed!) by fixing #3966.
parent
ca79d866
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
core.js
test/unit/core.js
+6
-6
No files found.
test/unit/core.js
View file @
481171a3
...
@@ -996,12 +996,12 @@ test("prependTo(String|Element|Array<Element>|jQuery)", function() {
...
@@ -996,12 +996,12 @@ test("prependTo(String|Element|Array<Element>|jQuery)", function() {
reset
();
reset
();
expected
=
"Try them out:YahooThis link has class=
\"
blog
\"
: Simon Willison's Weblog"
;
expected
=
"Try them out:YahooThis link has class=
\"
blog
\"
: Simon Willison's Weblog"
;
jQuery
([
document
.
getElementById
(
'
yahoo'
),
document
.
getElementById
(
'first
'
)]).
prependTo
(
'#sap'
);
jQuery
([
document
.
getElementById
(
'
first'
),
document
.
getElementById
(
'yahoo
'
)]).
prependTo
(
'#sap'
);
equals
(
expected
,
jQuery
(
'#sap'
).
text
(),
"Check for prepending of array of elements"
);
equals
(
expected
,
jQuery
(
'#sap'
).
text
(),
"Check for prepending of array of elements"
);
reset
();
reset
();
expected
=
"
Try them out:Yahoo
This link has class=
\"
blog
\"
: Simon Willison's Weblog"
;
expected
=
"
YahooTry them out:
This link has class=
\"
blog
\"
: Simon Willison's Weblog"
;
jQuery
(
"#
yahoo, #first
"
).
prependTo
(
'#sap'
);
jQuery
(
"#
first, #yahoo
"
).
prependTo
(
'#sap'
);
equals
(
expected
,
jQuery
(
'#sap'
).
text
(),
"Check for prepending of jQuery object"
);
equals
(
expected
,
jQuery
(
'#sap'
).
text
(),
"Check for prepending of jQuery object"
);
reset
();
reset
();
...
@@ -1090,12 +1090,12 @@ test("insertAfter(String|Element|Array<Element>|jQuery)", function() {
...
@@ -1090,12 +1090,12 @@ test("insertAfter(String|Element|Array<Element>|jQuery)", function() {
reset
();
reset
();
expected
=
"This is a normal link: YahooTry them out:diveintomark"
;
expected
=
"This is a normal link: YahooTry them out:diveintomark"
;
jQuery
([
document
.
getElementById
(
'
mark'
),
document
.
getElementById
(
'first
'
)]).
insertAfter
(
'#yahoo'
);
jQuery
([
document
.
getElementById
(
'
first'
),
document
.
getElementById
(
'mark
'
)]).
insertAfter
(
'#yahoo'
);
equals
(
expected
,
jQuery
(
'#en'
).
text
(),
"Insert array of elements after"
);
equals
(
expected
,
jQuery
(
'#en'
).
text
(),
"Insert array of elements after"
);
reset
();
reset
();
expected
=
"This is a normal link: Yahoo
Try them out:diveintomark
"
;
expected
=
"This is a normal link: Yahoo
diveintomarkTry them out:
"
;
jQuery
(
"#
mark, #first
"
).
insertAfter
(
'#yahoo'
);
jQuery
(
"#
first, #mark
"
).
insertAfter
(
'#yahoo'
);
equals
(
expected
,
jQuery
(
'#en'
).
text
(),
"Insert jQuery after"
);
equals
(
expected
,
jQuery
(
'#en'
).
text
(),
"Insert jQuery after"
);
});
});
...
...
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