]> source.dussan.org Git - jquery.git/commitdiff
Add es3: true to test/.jshintrc. Make tests conform to that jsHint setting.
authorMichał Gołębiowski <m.goleb@gmail.com>
Fri, 15 Nov 2013 11:54:40 +0000 (12:54 +0100)
committerMichał Gołębiowski <m.goleb@gmail.com>
Fri, 15 Nov 2013 11:54:40 +0000 (12:54 +0100)
test/.jshintrc
test/unit/ajax.js
test/unit/core.js

index 65c224f0e653a16d79c3281212b5c6179ee02cf9..4f9dc87d225c7bd80f82a6b59632a457d12a6167 100644 (file)
@@ -13,6 +13,7 @@
        "undef": true,
        "unused": true,
 
+       "es3": true,
        "evil": true,
        "sub": true,
 
index 9899fa092b6150088008105b1fb9792adacb2463..8e9094d123db87ca9f722d5abc3b029bf3ca69af 100644 (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
index 2af9f4a66fc997eb91690dfa34a8f281e88d2571..bc21b04684fe7ec7206238d712f9d0ec5aa7b061 100644 (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"
        );