Skip to content

Commit

Permalink
Tests: Keep iframes visible in TestSwarm
Browse files Browse the repository at this point in the history
  • Loading branch information
gibson042 committed Apr 29, 2017
1 parent dd408ce commit c0edd8d
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions test/data/testinit.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,19 @@ this.testIframe = function( title, fileName, func, wrapper ) {
wrapper.call( QUnit, title, function( assert ) {
var done = assert.async(),
$iframe = supportjQuery( "<iframe/>" )
.css( { position: "absolute", width: "500px", left: "-600px" } )
.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",
height: "300px",
width: "500px"
} );

// 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() {
Expand Down

0 comments on commit c0edd8d

Please sign in to comment.