Build: enable JSCS for test/unit/support.js, fix styling issues

This commit is contained in:
Michał Gołębiowski 2016-01-27 12:13:32 +01:00
parent 28f0329a02
commit dda87f6b16
2 changed files with 6 additions and 3 deletions

View File

@ -134,6 +134,7 @@ module.exports = function( grunt ) {
"test/data/testrunner.js", "test/data/testrunner.js",
"test/unit/animation.js", "test/unit/animation.js",
"test/unit/basic.js", "test/unit/basic.js",
"test/unit/support.js",
"test/unit/tween.js", "test/unit/tween.js",
"test/unit/wrap.js" "test/unit/wrap.js"
], ],

View File

@ -29,7 +29,8 @@ if ( jQuery.css ) {
}; };
assert.ok( okValue[ color ], "color was not reset (" + color + ")" ); 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(); var done = assert.async();
assert.expect( 2 ); 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 ) { supportjQuery.get( "data/support/csp.log" ).done( function( data ) {
assert.equal( data, "", "No log request should be sent" ); assert.equal( data, "", "No log request should be sent" );
@ -273,6 +275,6 @@ testIframeWithCallback(
assert.ok( true, "no ajax; skipping jQuery.support['" + i + "']" ); assert.ok( true, "no ajax; skipping jQuery.support['" + i + "']" );
} }
} }
}); } );
} )(); } )();