]> source.dussan.org Git - jquery.git/commitdiff
Tests: Revert some testIframe changes to fix dimensions tests 3658/head
authorRichard Gibson <richard.gibson@gmail.com>
Sat, 29 Apr 2017 06:00:12 +0000 (02:00 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Sat, 29 Apr 2017 13:46:19 +0000 (09:46 -0400)
Ref c0edd8dc18e02999a25768a4946093b015045f80

test/data/testinit.js

index f2c4ae2a54ea1f170bcaae93df37fbc1a51abe29..1aa9a65da8556b134963d949800355edcc73a8f4 100644 (file)
@@ -238,13 +238,8 @@ this.testIframe = function( title, fileName, func, wrapper ) {
        wrapper.call( QUnit, title, function( assert ) {
                var done = assert.async(),
                        $iframe = supportjQuery( "<iframe/>" )
-                               .attr( { id: "qunit-fixture-iframe", src: url( "./data/" + fileName ) } )
-                               .css( { position: "absolute", top: "0", left: "-600px", width: "500px" } );
-
-               // Try to overcome TestSwarm iframe visibilty quirks
-               if ( QUnit.isSwarm ) {
-                       $iframe.css( { left: "0" } );
-               }
+                               .css( { position: "absolute", top: "0", left: "-600px", width: "500px" } )
+                               .attr( { id: "qunit-fixture-iframe", src: url( "./data/" + fileName ) } );
 
                // Test iframes are expected to invoke this via startIframeTest (cf. iframeTest.js)
                window.iframeCallback = function() {