Skip to content

Commit

Permalink
Manipulation: Add test for jquerygh-4126
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Nov 26, 2018
1 parent e0d9411 commit becad61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/manipulation.js
Original file line number Diff line number Diff line change
Expand Up @@ -2818,3 +2818,8 @@ QUnit.test( "Insert script with data-URI (gh-1887)", 1, function( assert ) {
done();
}, 100 );
} );

QUnit.test( "Ignore content from unsuccessful responses (gh-4126)", 1, function( assert ) {
jQuery( "#qunit-fixture" ).append( "<script src='" + url( "mock.php?action=error" ) + "'/>" );
assert.ok( true, "no error thrown from interpreting an unsuccessful response as JavaScript" );
} );

0 comments on commit becad61

Please sign in to comment.