mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Tests: further improvements QUnit 2.0 migration
* Remove QUnit jshint globals * Extend QUnit.assert methods * Use assert.async instead of start/stop/done Refb930d14ce6Refc8d15a2f9f
This commit is contained in:
@@ -60,14 +60,14 @@ testIframeWithCallback(
|
||||
"Check CSP (https://developer.mozilla.org/en-US/docs/Security/CSP) restrictions",
|
||||
"support/csp.php",
|
||||
function( support, assert ) {
|
||||
var done = assert.async();
|
||||
|
||||
assert.expect( 2 );
|
||||
assert.deepEqual( jQuery.extend( {}, support ), computedSupport, "No violations of CSP polices" );
|
||||
|
||||
QUnit.stop();
|
||||
|
||||
supportjQuery.get( "data/support/csp.log" ).done( function( data ) {
|
||||
assert.equal( data, "", "No log request should be sent" );
|
||||
supportjQuery.get( "data/support/csp-clean.php" ).done( start );
|
||||
supportjQuery.get( "data/support/csp-clean.php" ).done( done );
|
||||
} );
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user