aboutsummaryrefslogtreecommitdiffstats
path: root/test/data
diff options
context:
space:
mode:
authorRichard Gibson <richard.gibson@gmail.com>2017-04-28 23:54:06 -0400
committerRichard Gibson <richard.gibson@gmail.com>2017-04-28 23:54:06 -0400
commitc0edd8dc18e02999a25768a4946093b015045f80 (patch)
tree122090569cba8b2e22b4ced68c0c6c0d52c7b31e /test/data
parentdd408ce12f789f46516be5409da4116c6408b756 (diff)
downloadjquery-c0edd8dc18e02999a25768a4946093b015045f80.tar.gz
jquery-c0edd8dc18e02999a25768a4946093b015045f80.zip
Tests: Keep iframes visible in TestSwarm
Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
Diffstat (limited to 'test/data')
-rw-r--r--test/data/testinit.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/data/testinit.js b/test/data/testinit.js
index 07db69695..521795476 100644
--- a/test/data/testinit.js
+++ b/test/data/testinit.js
@@ -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() {