diff options
author | Michał Gołębiowski <m.goleb@gmail.com> | 2013-11-15 12:54:40 +0100 |
---|---|---|
committer | Michał Gołębiowski <m.goleb@gmail.com> | 2013-11-15 12:54:40 +0100 |
commit | 62cebacdcb7f6fb1b009b36329c1babddbdc6794 (patch) | |
tree | fd9e866e2495720ea45433774822bbed9a1320b9 /test | |
parent | 936126f10de193e2bb1c8280dbc2361ca5d62e29 (diff) | |
download | jquery-62cebacdcb7f6fb1b009b36329c1babddbdc6794.tar.gz jquery-62cebacdcb7f6fb1b009b36329c1babddbdc6794.zip |
Add es3: true to test/.jshintrc. Make tests conform to that jsHint setting.
Diffstat (limited to 'test')
-rw-r--r-- | test/.jshintrc | 1 | ||||
-rw-r--r-- | test/unit/ajax.js | 2 | ||||
-rw-r--r-- | test/unit/core.js | 2 |
3 files changed, 3 insertions, 2 deletions
diff --git a/test/.jshintrc b/test/.jshintrc index 65c224f0e..4f9dc87d2 100644 --- a/test/.jshintrc +++ b/test/.jshintrc @@ -13,6 +13,7 @@ "undef": true, "unused": true, + "es3": true, "evil": true, "sub": true, diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 9899fa092..8e9094d12 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1457,7 +1457,7 @@ module( "ajax", { jQuery.ajax({ url: "data/badjson.js", dataType: "script", - throws: true, + "throws": true, // TODO find a way to test this asynchronously, too async: false, // Global events get confused by the exception diff --git a/test/unit/core.js b/test/unit/core.js index 2af9f4a66..bc21b0468 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -1363,7 +1363,7 @@ test("jQuery.parseJSON", function() { deepEqual( jQuery.parseJSON( "{ \"string\": \"\", \"number\": 4.2e+1, \"object\": {}," + "\"array\": [[]], \"boolean\": [ true, false ], \"null\": null }"), - { string: "", number: 42, object: {}, array: [[]], boolean: [ true, false ], "null": null }, + { string: "", number: 42, object: {}, array: [[]], "boolean": [ true, false ], "null": null }, "Dictionary of all data types" ); |