]> source.dussan.org Git - jquery.git/commitdiff
Build: Use jscs to check test helpers
authorOleg Gaidarenko <markelog@gmail.com>
Tue, 18 Feb 2014 16:32:17 +0000 (20:32 +0400)
committerOleg Gaidarenko <markelog@gmail.com>
Tue, 15 Apr 2014 13:45:59 +0000 (17:45 +0400)
Also fix issues found by jscs

Gruntfile.js
test/data/testinit.js
test/data/testrunner.js

index ea570f1fa431bfcc89d1c01aa222b2668a10197d..001a407d0ef49340c72cdb84208a82547ce7efa1 100644 (file)
@@ -101,6 +101,9 @@ module.exports = function( grunt ) {
                jscs: {
                        src: "src/**/*.js",
                        gruntfile: "Gruntfile.js",
+
+                       // Right know, check only test helpers
+                       test: [ "test/data/testrunner.js", "test/data/testinit.js" ],
                        tasks: "build/tasks/*.js"
                },
                testswarm: {
index 2751f65cc99644d5cf5373439ee41b5ee73e6afa..de03e0e7cde00e6d065eab427b27f78009169e33 100644 (file)
@@ -201,7 +201,6 @@ this.ajaxTest = function( title, expect, options ) {
        });
 };
 
-
 this.testIframe = function( fileName, name, fn ) {
        asyncTest(name, function() {
 
index ea7cf7d7a2da9a944a1e9518c42699dfa3aefa29..4b8b255ae0786db373fff7bc3df996e4523d0d5a 100644 (file)
@@ -124,7 +124,6 @@ window.moduleTeardown = function() {
                oldActive = jQuery.active;
        }
 
-
        for ( i in jQuery.cache ) {
                ++cacheLength;
        }