diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2020-03-16 21:49:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-16 21:49:29 +0100 |
commit | 90fed4b453a5becdb7f173d9e3c1492390a1441f (patch) | |
tree | 1415e8746489af4d26b31b422cb9b3db95497cb2 /test/unit/ajax.js | |
parent | 5b94a4f847fe2328b1b8f2340b11b6031f95d2d1 (diff) | |
download | jquery-90fed4b453a5becdb7f173d9e3c1492390a1441f.tar.gz jquery-90fed4b453a5becdb7f173d9e3c1492390a1441f.zip |
Manipulation: Make jQuery.htmlPrefilter an identity function
Closes gh-4642
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index e1f290f32..ed17677ba 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -2540,7 +2540,7 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re addGlobalEvents( "ajaxStart ajaxStop ajaxSend ajaxComplete ajaxError", assert )(); jQuery( document ).on( "ajaxStop", done ); - jQuery( "<div/>" ).load( baseURL + "404.txt", function() { + jQuery( "<div></div>" ).load( baseURL + "404.txt", function() { assert.ok( true, "complete" ); } ); } ); @@ -2647,7 +2647,7 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re return "Hello World"; } } ); - jQuery( "<div/>" ).load( url( "name.html" ), function( responseText ) { + jQuery( "<div></div>" ).load( url( "name.html" ), function( responseText ) { assert.strictEqual( jQuery( this ).html(), "Hello World", "Test div was filled with filtered data" ); assert.strictEqual( responseText, "Hello World", "Test callback receives filtered data" ); done(); @@ -2657,7 +2657,7 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re QUnit.test( "jQuery.fn.load( String, Object, Function )", function( assert ) { assert.expect( 2 ); var done = assert.async(); - jQuery( "<div />" ).load( url( "mock.php?action=echoHtml" ), { + jQuery( "<div></div>" ).load( url( "mock.php?action=echoHtml" ), { "bar": "ok" }, function() { var $node = jQuery( this ); @@ -2671,7 +2671,7 @@ if ( typeof window.ArrayBuffer === "undefined" || typeof new XMLHttpRequest().re assert.expect( 2 ); var done = assert.async(); - jQuery( "<div />" ).load( url( "mock.php?action=echoHtml" ), "foo=3&bar=ok", function() { + jQuery( "<div></div>" ).load( url( "mock.php?action=echoHtml" ), "foo=3&bar=ok", function() { var $node = jQuery( this ); assert.strictEqual( $node.find( "#method" ).text(), "GET", "Check method" ); assert.ok( $node.find( "#query" ).text().match( /foo=3&bar=ok/ ), "Check if a string of data is passed correctly" ); |