File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -840,6 +840,12 @@ QUnit.module( "ajax", {
840840 ajaxTest ( "jQuery.ajax() - do not execute scripts from unsuccessful responses (gh-4250)" , 10 , function ( assert ) {
841841 var globalEval = jQuery . globalEval ;
842842
843+ var canary = {
844+ "text script" : function ( ) {
845+ assert . ok ( false , "No converter for unsuccessful response" ) ;
846+ }
847+ } ;
848+
843849 function request ( title , options ) {
844850 var testMsg = title + ": expected file missing status" ;
845851 return jQuery . extend ( {
@@ -861,12 +867,6 @@ QUnit.module( "ajax", {
861867 } , options ) ;
862868 }
863869
864- var canary = {
865- "text script" : function ( ) {
866- assert . ok ( false , "No converter for unsuccessful response" ) ;
867- }
868- }
869-
870870 return [
871871 request (
872872 "HTML reply" ,
You can’t perform that action at this time.
0 commit comments