]> source.dussan.org Git - jquery.git/commitdiff
Tests: Keep test iframes around for assertions
authorRichard Gibson <richard.gibson@gmail.com>
Sat, 17 Oct 2015 21:40:30 +0000 (17:40 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Sun, 25 Oct 2015 18:12:53 +0000 (14:12 -0400)
Ref 44f8239d3f9d09d81e2885e9ae7e044277b67341
Ref gh-2644
Ref gh-2390

(cherry picked from commit 0fb84fa8ccefcd07febf282fd7b80262ad70add7)

test/data/testinit.js

index e88df966f4793aae6fbb5b590705494583ee9e21..ca8f433d7d0872e4279ea4beef7f83c30332f335 100644 (file)
@@ -252,9 +252,9 @@ this.testIframeWithCallback = function( title, fileName, func ) {
                        setTimeout( function() {
                                this.iframeCallback = undefined;
 
-                               iframe.remove();
                                func.apply( this, args );
                                func = function() {};
+                               iframe.remove();
 
                                done();
                        } );