diff options
author | jaubourg <j@ubourg.net> | 2012-06-11 13:59:34 +0200 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2012-06-11 14:00:16 +0200 |
commit | ac48a19b92e60f08e5b00a46b5551a503c292fd5 (patch) | |
tree | 623962004549610b85a82740baf056633427e9a1 /test/unit/manipulation.js | |
parent | 5f35b3d9f90d07ee084d59702a54051ee51fb0d3 (diff) | |
download | jquery-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.js | 14 |
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<Element>|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<Element>|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) { |