Add es3: true to test/.jshintrc. Make tests conform to that jsHint setting.

This commit is contained in:
Michał Gołębiowski 2013-11-15 12:54:40 +01:00
parent 936126f10d
commit 62cebacdcb
3 changed files with 3 additions and 2 deletions

View File

@ -13,6 +13,7 @@
"undef": true,
"unused": true,
"es3": true,
"evil": true,
"sub": true,

View File

@ -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

View File

@ -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"
);