diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2017-04-29 02:05:46 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2017-04-29 02:05:46 -0400 |
commit | 72af0c4c7e22567da72e7e811ce8114543a6b2de (patch) | |
tree | 861684b501573f1629b48dbadec9fff5e283df4f /test/data | |
parent | c4368a93116e9d1d17587fc2f5421a891957cf45 (diff) | |
download | jquery-72af0c4c7e22567da72e7e811ce8114543a6b2de.tar.gz jquery-72af0c4c7e22567da72e7e811ce8114543a6b2de.zip |
Revert "Tests: Revert some testIframe changes to fix dimensions tests"
This reverts commit c4368a93116e9d1d17587fc2f5421a891957cf45.
Diffstat (limited to 'test/data')
-rw-r--r-- | test/data/testinit.js | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test/data/testinit.js b/test/data/testinit.js index 1aa9a65da..f2c4ae2a5 100644 --- a/test/data/testinit.js +++ b/test/data/testinit.js @@ -238,8 +238,13 @@ this.testIframe = function( title, fileName, func, wrapper ) { wrapper.call( QUnit, title, function( assert ) { var done = assert.async(), $iframe = supportjQuery( "<iframe/>" ) - .css( { position: "absolute", top: "0", left: "-600px", width: "500px" } ) - .attr( { id: "qunit-fixture-iframe", src: url( "./data/" + fileName ) } ); + .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" } ); + } // Test iframes are expected to invoke this via startIframeTest (cf. iframeTest.js) window.iframeCallback = function() { |