diff options
author | Oleg Gaidarenko <markelog@gmail.com> | 2014-02-27 03:33:15 +0400 |
---|---|---|
committer | Oleg Gaidarenko <markelog@gmail.com> | 2014-04-15 17:46:26 +0400 |
commit | 4d5596e3e412aa19528db12905bf8c09f3bde0ed (patch) | |
tree | 32385c2b63cb5bdb18f82f792b7b0b30e552178c | |
parent | 0837e41509dd58cbb3c6dd82567900f9ec829e6b (diff) | |
download | jquery-4d5596e3e412aa19528db12905bf8c09f3bde0ed.tar.gz jquery-4d5596e3e412aa19528db12905bf8c09f3bde0ed.zip |
Tests: Remove unused variables
-rw-r--r-- | test/data/testrunner.js | 10 | ||||
-rw-r--r-- | test/unit/selector.js | 4 |
2 files changed, 5 insertions, 9 deletions
diff --git a/test/data/testrunner.js b/test/data/testrunner.js index b97f3453b..e5ee2f980 100644 --- a/test/data/testrunner.js +++ b/test/data/testrunner.js @@ -1,17 +1,13 @@ define(function() { -// Allow subprojects to test against their own fixtures -var qunitModule = QUnit.module, - qunitTest = QUnit.test, - // Store the old counts so that we only assert on tests that have actually leaked, - // instead of asserting every time a test has leaked sometime in the past +// Store the old counts so that we only assert on tests that have actually leaked, +// instead of asserting every time a test has leaked sometime in the past +var reset, oldCacheLength = 0, oldActive = 0, expectedDataKeys = {}, - splice = [].splice, - reset, ajaxSettings = jQuery.ajaxSettings; /** diff --git a/test/unit/selector.js b/test/unit/selector.js index c3cdd31db..57e104894 100644 --- a/test/unit/selector.js +++ b/test/unit/selector.js @@ -100,7 +100,7 @@ test( "selectors with comma", function() { equal( fixture.find( "h2 , div p" ).filter( "h2" ).length, 1, "has to find one <h2>" ); }); -test("child and adjacent", function() { +test( "child and adjacent", function() { expect( 27 ); var nothiddendiv; @@ -144,7 +144,7 @@ test("child and adjacent", function() { test("attributes", function() { expect( 54 ); - var opt, input, attrbad, div, withScript; + var attrbad, div, withScript; t( "Find elements with a tabindex attribute", "[tabindex]", ["listWithTabIndex", "foodWithNegativeTabIndex", "linkWithTabIndex", "linkWithNegativeTabIndex", "linkWithNoHrefWithTabIndex", "linkWithNoHrefWithNegativeTabIndex"] ); |