git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ca79d86
)
Fixed some tests that were changed (fixed!) by fixing #3966.
author
John Resig
<jeresig@gmail.com>
Wed, 18 Feb 2009 19:59:51 +0000
(19:59 +0000)
committer
John Resig
<jeresig@gmail.com>
Wed, 18 Feb 2009 19:59:51 +0000
(19:59 +0000)
test/unit/core.js
patch
|
blob
|
history
diff --git
a/test/unit/core.js
b/test/unit/core.js
index
9befade
..
69a0676
100644
(file)
--- a/
test/unit/core.js
+++ b/
test/unit/core.js
@@
-996,12
+996,12
@@
test("prependTo(String|Element|Array<Element>|jQuery)", function() {
reset();
expected = "Try them out:YahooThis link has class=\"blog\": Simon Willison's Weblog";
reset();
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" );
reset();
equals( expected, jQuery('#sap').text(), "Check for prepending of array of elements" );
reset();
- expected = "Try them out:YahooThis link has class=\"blog\": Simon Willison's Weblog";
- jQuery("#yahoo, #first").prependTo('#sap');
+ expected = "YahooTry them out:This link has class=\"blog\": Simon Willison's Weblog";
+ jQuery("#first, #yahoo").prependTo('#sap');
equals( expected, jQuery('#sap').text(), "Check for prepending of jQuery object" );
reset();
equals( expected, jQuery('#sap').text(), "Check for prepending of jQuery object" );
reset();
@@
-1090,12
+1090,12
@@
test("insertAfter(String|Element|Array<Element>|jQuery)", function() {
reset();
expected = "This is a normal link: YahooTry them out:diveintomark";
reset();
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" );
reset();
equals( expected, jQuery('#en').text(), "Insert array of elements after" );
reset();
- expected = "This is a normal link: YahooTry them out:diveintomark";
- jQuery("#mark, #first").insertAfter('#yahoo');
+ expected = "This is a normal link: YahoodiveintomarkTry them out:";
+ jQuery("#first, #mark").insertAfter('#yahoo');
equals( expected, jQuery('#en').text(), "Insert jQuery after" );
});
equals( expected, jQuery('#en').text(), "Insert jQuery after" );
});