X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=test%2Funit%2Fajax.js;h=222dd9a38a2f06cd5abee653c1c03efb4f76a83e;hb=846c52d1f8535a6283dcc42c6e8f0c26991936ad;hp=35c030247e1baf5c19da21997ac30af9b5a01563;hpb=974637d639a06a050e11d87677d1c1c80bed709d;p=jquery.git diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 35c0302..222dd9a 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' );