git.asbjorn.biz
/
jquery.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make sure the fragment isn't used if it's not the same set we're working with. Fixes...
[jquery.git]
/
test
/
unit
/
manipulation.js
diff --git
a/test/unit/manipulation.js
b/test/unit/manipulation.js
index
e6e6c8d
..
2492ca5
100644
(file)
--- a/
test/unit/manipulation.js
+++ b/
test/unit/manipulation.js
@@
-376,7
+376,7
@@
test("append(Function) with incoming value", function() {
});
test("appendTo(String|Element|Array<Element>|jQuery)", function() {
});
test("appendTo(String|Element|Array<Element>|jQuery)", function() {
- expect(12);
+ expect(13);
var defaultText = 'Try them out:'
jQuery('<b>buga</b>').appendTo('#first');
equals( jQuery("#first").text(), defaultText + 'buga', 'Check if text appending works' );
var defaultText = 'Try them out:'
jQuery('<b>buga</b>').appendTo('#first');
equals( jQuery("#first").text(), defaultText + 'buga', 'Check if text appending works' );
@@
-424,6
+424,11
@@
test("appendTo(String|Element|Array<Element>|jQuery)", function() {
ok( jQuery("#moretests div:last").hasClass("test"), "appendTo element was modified after the insertion" );
reset();
ok( jQuery("#moretests div:last").hasClass("test"), "appendTo element was modified after the insertion" );
reset();
+
+ div = jQuery("<div/>");
+ jQuery("<span>a</span><b>b</b>").filter("span").appendTo( div );
+
+ equals( div.children().length, 1, "Make sure the right number of children were inserted." );
});
var testPrepend = function(val) {
});
var testPrepend = function(val) {