diff options
author | Timo Tijhof <krinklemail@gmail.com> | 2017-08-01 09:52:45 -0700 |
---|---|---|
committer | Timmy Willison <4timmywil@gmail.com> | 2017-12-18 12:27:38 -0500 |
commit | ecd8ddea33dc40ae2a57e4340be03faf2ba2f99b (patch) | |
tree | d0f248befa82620226708059db84bc3a7f1ec076 /test/unit/manipulation.js | |
parent | e84d3bc02eddeb0e0ca0438952ac560a794ff463 (diff) | |
download | jquery-ecd8ddea33dc40ae2a57e4340be03faf2ba2f99b.tar.gz jquery-ecd8ddea33dc40ae2a57e4340be03faf2ba2f99b.zip |
Tests: Add support for running unit tests via grunt with karma
- Update QUnit to 1.23.1
- Remove unused dl#dl from test/index.html
- Remove unused map#imgmap from test/index.html
- Ensure all urls to data use baseURI
- Add the 'grunt karma:main' task
- customContextFile & customDebugFile
- Add 'npm run jenkins' script
Close gh-3744
Fixes gh-1999
Diffstat (limited to 'test/unit/manipulation.js')
-rw-r--r-- | test/unit/manipulation.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/manipulation.js b/test/unit/manipulation.js index 4ad65ccb7..528a192ce 100644 --- a/test/unit/manipulation.js +++ b/test/unit/manipulation.js @@ -2377,7 +2377,7 @@ QUnit.asyncTest( "html() - script exceptions bubble (#11743)", 2, function( asse assert.ok( true, "Exception thrown in remote script" ); }; - jQuery( "#qunit-fixture" ).html( "<script src='data/badcall.js'></script>" ); + jQuery( "#qunit-fixture" ).html( "<script src='" + baseURL + "badcall.js'></script>" ); assert.ok( true, "Exception ignored" ); } else { assert.ok( true, "No jQuery.ajax" ); @@ -2463,7 +2463,7 @@ QUnit.test( "script evaluation (#11795)", function( assert ) { if ( jQuery.ajax ) { Globals.register( "testBar" ); - jQuery( "#qunit-fixture" ).append( "<script src='" + url( "data/testbar.php" ) + "'/>" ); + jQuery( "#qunit-fixture" ).append( "<script src='" + url( "mock.php?action=testbar" ) + "'/>" ); assert.strictEqual( window.testBar, "bar", "Global script evaluation" ); } else { assert.ok( true, "No jQuery.ajax" ); |