aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/manipulation.js
diff options
context:
space:
mode:
authorjaubourg <j@ubourg.net>2012-06-11 13:59:34 +0200
committerjaubourg <j@ubourg.net>2012-06-11 14:00:16 +0200
commitac48a19b92e60f08e5b00a46b5551a503c292fd5 (patch)
tree623962004549610b85a82740baf056633427e9a1 /test/unit/manipulation.js
parent5f35b3d9f90d07ee084d59702a54051ee51fb0d3 (diff)
downloadjquery-ac48a19b92e60f08e5b00a46b5551a503c292fd5.tar.gz
jquery-ac48a19b92e60f08e5b00a46b5551a503c292fd5.zip
Some work to modularize ajax later on.
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r--test/unit/manipulation.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js
index e8c183f3c..5ef64ed54 100644
--- a/test/unit/manipulation.js
+++ b/test/unit/manipulation.js
@@ -626,7 +626,7 @@ test("append(xml)", function() {
});
test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {
- expect(17);
+ expect( 16 + ( jQuery.getScript ? 1 : 0 ) );
var defaultText = "Try them out:"
jQuery("<b>buga</b>").appendTo("#first");
@@ -699,11 +699,13 @@ test("appendTo(String|Element|Array&lt;Element&gt;|jQuery)", function() {
QUnit.reset();
- stop();
- jQuery.getScript('data/test.js', function() {
- jQuery('script[src*="data\\/test\\.js"]').remove();
- start();
- });
+ if ( jQuery.getScript ) {
+ stop();
+ jQuery.getScript('data/test.js', function() {
+ jQuery('script[src*="data\\/test\\.js"]').remove();
+ start();
+ });
+ }
});
var testPrepend = function(val) {