diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2014-02-18 20:32:17 +0400 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2014-04-15 17:45:59 +0400 |
commit | 3dee2983ab211bc9b1bdbf372b0ac002f7debb03 (patch) | |
tree | f3c00eed48ec4700222311483ae031ddf27329a9 | |
parent | 8e5d1caf7ad8f02d727bdd5ef9dfed9ff463c8ea (diff) | |
download | jquery-3dee2983ab211bc9b1bdbf372b0ac002f7debb03.tar.gz jquery-3dee2983ab211bc9b1bdbf372b0ac002f7debb03.zip |
Build: Use jscs to check test helpers
Also fix issues found by jscs
-rw-r--r-- | Gruntfile.js | 3 | ||||
-rw-r--r-- | test/data/testinit.js | 1 | ||||
-rw-r--r-- | test/data/testrunner.js | 1 |
3 files changed, 3 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js index ea570f1fa..001a407d0 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -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: { diff --git a/test/data/testinit.js b/test/data/testinit.js index 2751f65cc..de03e0e7c 100644 --- a/test/data/testinit.js +++ b/test/data/testinit.js @@ -201,7 +201,6 @@ this.ajaxTest = function( title, expect, options ) { }); }; - this.testIframe = function( fileName, name, fn ) { asyncTest(name, function() { diff --git a/test/data/testrunner.js b/test/data/testrunner.js index ea7cf7d7a..4b8b255ae 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -124,7 +124,6 @@ window.moduleTeardown = function() { oldActive = jQuery.active; } - for ( i in jQuery.cache ) { ++cacheLength; } |