Skip to content
Permalink
Browse files

Fixes #13276. Unit test is enough since the 2.x XHR transport already…

… dismissed the XML as parsed by the XHR instance.
  • Loading branch information
jaubourg committed Jan 21, 2013
1 parent cbe0c2e commit 4c6fb65d358f6a9795f06ec8d5ed3acad6ad795d
Showing with 16 additions and 0 deletions.
  1. +16 −0 test/unit/ajax.js
@@ -1441,6 +1441,22 @@ module( "ajax", {

});

ajaxTest( "#13276 - jQuery.ajax() - compatibility between XML documents from ajax requests and parsed string", 1, {
url: "data/dashboard.xml",
dataType: "xml",
success: function( ajaxXML ) {
var parsedXML = jQuery( jQuery.parseXML("<tab title=\"Added\">blibli</tab>") ).find("tab");
ajaxXML = jQuery( ajaxXML );
try {
ajaxXML.find("infowindowtab").append( parsedXML );
} catch( e ) {
strictEqual( e, undefined, "error" );
return;
}
strictEqual( ajaxXML.find("tab").length, 3, "Parsed node was added properly" );
}
});

//----------- jQuery.ajaxPrefilter()

ajaxTest( "jQuery.ajaxPrefilter() - abort", 1, {

0 comments on commit 4c6fb65

Please sign in to comment.
You can’t perform that action at this time.