mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
Build: enable JSCS for test/unit/support.js, fix styling issues
This commit is contained in:
parent
28f0329a02
commit
dda87f6b16
@ -134,6 +134,7 @@ module.exports = function( grunt ) {
|
||||
"test/data/testrunner.js",
|
||||
"test/unit/animation.js",
|
||||
"test/unit/basic.js",
|
||||
"test/unit/support.js",
|
||||
"test/unit/tween.js",
|
||||
"test/unit/wrap.js"
|
||||
],
|
||||
|
@ -29,7 +29,8 @@ if ( jQuery.css ) {
|
||||
};
|
||||
assert.ok( okValue[ color ], "color was not reset (" + color + ")" );
|
||||
|
||||
assert.deepEqual( jQuery.extend( {}, support ), computedSupport, "Same support properties" );
|
||||
assert.deepEqual( jQuery.extend( {}, support ), computedSupport,
|
||||
"Same support properties" );
|
||||
}
|
||||
);
|
||||
}
|
||||
@ -43,7 +44,8 @@ testIframeWithCallback(
|
||||
var done = assert.async();
|
||||
|
||||
assert.expect( 2 );
|
||||
assert.deepEqual( jQuery.extend( {}, support ), computedSupport, "No violations of CSP polices" );
|
||||
assert.deepEqual( jQuery.extend( {}, support ), computedSupport,
|
||||
"No violations of CSP polices" );
|
||||
|
||||
supportjQuery.get( "data/support/csp.log" ).done( function( data ) {
|
||||
assert.equal( data, "", "No log request should be sent" );
|
||||
@ -273,6 +275,6 @@ testIframeWithCallback(
|
||||
assert.ok( true, "no ajax; skipping jQuery.support['" + i + "']" );
|
||||
}
|
||||
}
|
||||
});
|
||||
} );
|
||||
|
||||
} )();
|
||||
|
Loading…
Reference in New Issue
Block a user