diff options
Diffstat (limited to 'test/unit/ajax.js')
-rw-r--r-- | test/unit/ajax.js | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/unit/ajax.js b/test/unit/ajax.js index deeae452d..19c0b7b4f 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -1796,6 +1796,25 @@ QUnit.module( "ajax", { ); QUnit.test( + "jQuery#load() - should resolve with correct context", 2, + function( assert ) { + var done = assert.async(); + var ps = jQuery( "<p></p><p></p>" ); + var i = 0; + + ps.appendTo( "#qunit-fixture" ); + + ps.load( "data/ajax/method.php", function() { + assert.strictEqual( this, ps[ i++ ] ); + + if ( i === 2 ) { + done(); + } + } ); + } + ); + + QUnit.test( "#11402 - jQuery.domManip() - script in comments are properly evaluated", 2, function( assert ) { jQuery( "#qunit-fixture" ).load( "data/cleanScript.html", assert.async() ); |