Tests: Revert some testIframe changes to fix dimensions tests

Ref c0edd8dc18
This commit is contained in:
Richard Gibson 2017-04-29 02:00:12 -04:00
parent 72af0c4c7e
commit b3defccdc0

View File

@ -238,13 +238,8 @@ this.testIframe = function( title, fileName, func, wrapper ) {
wrapper.call( QUnit, title, function( assert ) { wrapper.call( QUnit, title, function( assert ) {
var done = assert.async(), var done = assert.async(),
$iframe = supportjQuery( "<iframe/>" ) $iframe = supportjQuery( "<iframe/>" )
.attr( { id: "qunit-fixture-iframe", src: url( "./data/" + fileName ) } ) .css( { position: "absolute", top: "0", left: "-600px", width: "500px" } )
.css( { position: "absolute", top: "0", left: "-600px", width: "500px" } ); .attr( { id: "qunit-fixture-iframe", src: url( "./data/" + fileName ) } );
// 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) // Test iframes are expected to invoke this via startIframeTest (cf. iframeTest.js)
window.iframeCallback = function() { window.iframeCallback = function() {