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

parent 936126f1
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
"undef": true, "undef": true,
"unused": true, "unused": true,
"es3": true,
"evil": true, "evil": true,
"sub": true, "sub": true,
......
...@@ -1457,7 +1457,7 @@ module( "ajax", { ...@@ -1457,7 +1457,7 @@ module( "ajax", {
jQuery.ajax({ jQuery.ajax({
url: "data/badjson.js", url: "data/badjson.js",
dataType: "script", dataType: "script",
throws: true, "throws": true,
// TODO find a way to test this asynchronously, too // TODO find a way to test this asynchronously, too
async: false, async: false,
// Global events get confused by the exception // Global events get confused by the exception
......
...@@ -1363,7 +1363,7 @@ test("jQuery.parseJSON", function() { ...@@ -1363,7 +1363,7 @@ test("jQuery.parseJSON", function() {
deepEqual( deepEqual(
jQuery.parseJSON( "{ \"string\": \"\", \"number\": 4.2e+1, \"object\": {}," + jQuery.parseJSON( "{ \"string\": \"\", \"number\": 4.2e+1, \"object\": {}," +
"\"array\": [[]], \"boolean\": [ true, false ], \"null\": null }"), "\"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" "Dictionary of all data types"
); );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment