diff options
author | Dan Heberden <danheberden@gmail.com> | 2011-04-05 01:43:14 -0700 |
---|---|---|
committer | Dan Heberden <danheberden@gmail.com> | 2011-04-05 01:43:14 -0700 |
commit | a7e7dbd978b97c55a29b364fd277c4ade1ec22b6 (patch) | |
tree | 18a7ed77e9ab5927fb9b4b00fcefd0d209b302dd /test/unit/ajax.js | |
parent | 2ed81b44be958b5f2b5569ab15f22bde262b4eb6 (diff) | |
download | jquery-a7e7dbd978b97c55a29b364fd277c4ade1ec22b6.tar.gz jquery-a7e7dbd978b97c55a29b364fd277c4ade1ec22b6.zip |
Bug 7587; Enhancement/1.6 Feature: Bypass regexp filter on $.parseJSON and use native thrown exceptions if window.JSON.parse is available
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 7c572a32c..e9c7a00c5 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1600,7 +1600,7 @@ test("jQuery.ajax() - malformed JSON", function() { }, error: function(xhr, msg, detailedMsg) { equals( "parsererror", msg, "A parse error occurred." ); - ok( /^Invalid JSON/.test(detailedMsg), "Detailed parsererror message provided" ); + ok( /^(Invalid|SyntaxError|exception)/i.test(detailedMsg), "Detailed parsererror message provided" ); start(); } }); |