aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit
diff options
context:
space:
mode:
authorJohn Resig <jeresig@gmail.com>2009-01-10 01:07:59 +0000
committerJohn Resig <jeresig@gmail.com>2009-01-10 01:07:59 +0000
commit29bf601f3495ced43fbb6152bf9306f2618bb955 (patch)
tree41b167151eac7543e533c9360c9b04dd7abe5501 /test/unit
parentafb05081c013bdd38e0dc8ac1c99bbb9f5a00559 (diff)
downloadjquery-29bf601f3495ced43fbb6152bf9306f2618bb955.tar.gz
jquery-29bf601f3495ced43fbb6152bf9306f2618bb955.zip
Fixed an issue with script nodes being removed incorrectly, fixes #3737.
Diffstat (limited to 'test/unit')
-rw-r--r--test/unit/core.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/unit/core.js b/test/unit/core.js
index ef36c4f78..1ec3487d0 100644
--- a/test/unit/core.js
+++ b/test/unit/core.js
@@ -899,7 +899,7 @@ test("append(String|Element|Array&lt;Element&gt;|jQuery)", function() {
});
test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {
- expect(6);
+ expect(7);
var defaultText = 'Try them out:'
jQuery('<b>buga</b>').appendTo('#first');
equals( jQuery("#first").text(), defaultText + 'buga', 'Check if text appending works' );
@@ -916,6 +916,9 @@ test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {
equals( expected, jQuery('#sap').text(), "Check for appending of array of elements" );
reset();
+ ok( jQuery(document.createElement("script")).appendTo("body").length, "Make sure a disconnected script can be appended." );
+
+ reset();
expected = document.querySelectorAll ?
"This link has class=\"blog\": Simon Willison's WeblogYahooTry them out:" :
"This link has class=\"blog\": Simon Willison's WeblogTry them out:Yahoo";