diff options
author | Dave Methvin <dave.methvin@gmail.com> | 2011-11-08 13:12:37 -0500 |
---|---|---|
committer | Dave Methvin <dave.methvin@gmail.com> | 2011-11-08 15:52:30 -0500 |
commit | c3600e261ba8d9394fe505ef5a0611b6d6b18a8d (patch) | |
tree | 4f302c91bce22aab879f75b247c7d74862c9cead /test/unit/ajax.js | |
parent | d8e2b4b6e43cb2de9cd1d21bc6aa1174393535ba (diff) | |
download | jquery-c3600e261ba8d9394fe505ef5a0611b6d6b18a8d.tar.gz jquery-c3600e261ba8d9394fe505ef5a0611b6d6b18a8d.zip |
Take 2 on "Fix ajax to always expect an Error object, per #10646."
We can't use jQuery.error to rethrow anymore since it constructs a new Error from its supposedly-string arg. Also, older IE stringifies Error objects into "[object Error]" so I've loosened the unit test criteria.
This reverts commit 586fb059190ecacd89e3cd211c78e776792d2f2b.
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index c89224c2e..9527beea1 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1616,7 +1616,7 @@ test("jQuery.ajax() - malformed JSON", function() { }, error: function(xhr, msg, detailedMsg) { equal( "parsererror", msg, "A parse error occurred." ); - ok( /^(Invalid|SyntaxError|exception)/i.test(detailedMsg), "Detailed parsererror message provided" ); + ok( /(invalid|error|exception)/i.test(detailedMsg), "Detailed parsererror message provided" ); start(); } }); |