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/support.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/support.js')
-rw-r--r-- | test/unit/support.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/support.js b/test/unit/support.js index 312173207..a42a129f1 100644 --- a/test/unit/support.js +++ b/test/unit/support.js @@ -39,7 +39,7 @@ if ( jQuery.css ) { // i.e. no old WebKit or old Firefox testIframe( "Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions", - "support/csp.php", + "mock.php?action=cspFrame", function( assert, jQuery, window, document, support ) { var done = assert.async(); @@ -47,9 +47,9 @@ testIframe( assert.deepEqual( jQuery.extend( {}, support ), computedSupport, "No violations of CSP polices" ); - supportjQuery.get( "data/support/csp.log" ).done( function( data ) { + supportjQuery.get( baseURL + "support/csp.log" ).done( function( data ) { assert.equal( data, "", "No log request should be sent" ); - supportjQuery.get( "data/support/csp-clean.php" ).done( done ); + supportjQuery.get( baseURL + "mock.php?action=cspClean" ).done( done ); } ); } ); |