]> source.dussan.org Git - jquery.git/commitdiff
Build: enable JSCS for test/unit/support.js, fix styling issues
authorMichał Gołębiowski <m.goleb@gmail.com>
Wed, 27 Jan 2016 11:13:32 +0000 (12:13 +0100)
committerMichał Gołębiowski <m.goleb@gmail.com>
Wed, 27 Jan 2016 11:14:17 +0000 (12:14 +0100)
Gruntfile.js
test/unit/support.js

index 1e204ad23c908e8494088075a8f644c53cb4f0e6..ec1705a50f9bc035dd71320ad237ddf3aaee7231 100644 (file)
@@ -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"
                        ],
index f51c535025fd82e57612c9cd6a7f7dd70724f70f..3e6af1ae7daa85ba8acbffc0c5162c2ce533020e 100644 (file)
@@ -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 + "']" );
                        }
                }
-       });
+       } );
 
 } )();