diff options
author | unknown <Julian@.(none)> | 2010-12-24 18:02:45 +0100 |
---|---|---|
committer | jaubourg <j@ubourg.net> | 2010-12-31 04:05:52 +0100 |
commit | 22e28b01e60e87b2454f88ca128fb84916b13564 (patch) | |
tree | 04a51ea5d599fa2b93faf0c85f52913843453f57 /test | |
parent | 524bf39400e12db84e6857988d431c2c8ca7b2fb (diff) | |
download | jquery-22e28b01e60e87b2454f88ca128fb84916b13564.tar.gz jquery-22e28b01e60e87b2454f88ca128fb84916b13564.zip |
Changed dataConverters key format.
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/ajax.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index beec2c537..88d66bf47 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -707,6 +707,10 @@ test("jQuery.ajax - xml: non-namespace elements inside namespaced elements (over equals( jQuery("jsconf", resp).length, 1, 'jsconf in responseXML' ); equals( jQuery("thing", resp).length, 2, 'things in responseXML' ); start(); + }, + error: function(_1,_2,error) { + ok( false, error ); + start(); } }); }); @@ -1487,7 +1491,7 @@ test("jQuery.ajax() - json by content-type disabled with options", function() { }, success: function( text ) { equals( typeof text , "string" , "json wasn't auto-determined" ); - var json = this.dataConverters["text => json"]( text ); + var json = this.dataConverters["text json"]( text ); ok( json.length >= 2, "Check length"); equals( json[0].name, 'John', 'Check JSON: first, name' ); equals( json[0].age, 21, 'Check JSON: first, age' ); |