Tests: Clean up offset debugging

Ref 1d2df772b4
Ref c0edd8dc18
This commit is contained in:
Richard Gibson 2017-04-29 01:35:20 -04:00
parent da533c6acc
commit e94b5b0bbf
2 changed files with 1 additions and 24 deletions

View File

@ -239,13 +239,7 @@ this.testIframe = function( title, fileName, func, wrapper ) {
var done = assert.async(),
$iframe = supportjQuery( "<iframe/>" )
.attr( { id: "qunit-fixture-iframe", src: url( "./data/" + fileName ) } )
.css( {
position: "absolute",
top: "0",
left: "-600px",
height: "300px",
width: "500px"
} );
.css( { position: "absolute", top: "0", left: "-600px", width: "500px" } );
// Try to overcome TestSwarm iframe visibilty quirks
if ( QUnit.isSwarm ) {

View File

@ -674,23 +674,6 @@ QUnit.test( "chaining", function( assert ) {
doc.body.style.position = bodyPos;
win.scrollTo( scrollLeft, scrollTop );
// Try to figure out what is happening in TestSwarm
var fixed = $( "#fixed" )[ 0 ],
fixedStyle = win.getComputedStyle( fixed ),
fixedRect = fixed.getBoundingClientRect();
assert.ok( "CI debug", JSON.stringify(
{
isSwarm: QUnit.isSwarm,
alwaysScrollable: alwaysScrollable,
"original scroll": [ scrollTop, scrollLeft ],
"scroll": [ win.pageYOffset, win.pageXOffset ],
"#fixed pos": fixedStyle.position,
"#fixed viewport rect": [ fixedRect.top, fixedRect.left ]
},
null,
" "
) );
// Verify expected document offset
supportjQuery.each( expectations, function( id, descriptor ) {
assert.deepEqual(