Revert "Tests: Revert some testIframe changes to fix dimensions tests"

This reverts commit c4368a9311.
This commit is contained in:
Richard Gibson 2017-04-29 02:05:46 -04:00
parent c4368a9311
commit 72af0c4c7e

View File

@ -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() {