diff options
author | Richard Gibson <richard.gibson@gmail.com> | 2017-04-29 01:35:20 -0400 |
---|---|---|
committer | Richard Gibson <richard.gibson@gmail.com> | 2017-04-29 01:35:20 -0400 |
commit | e94b5b0bbf8d8179bc79ab749470e71092225862 (patch) | |
tree | 06da90fabfd56288ad38e36b6a8d8f4711ced852 /test | |
parent | da533c6acc3130a94d29c2f2611dd02f9af7f114 (diff) | |
download | jquery-e94b5b0bbf8d8179bc79ab749470e71092225862.tar.gz jquery-e94b5b0bbf8d8179bc79ab749470e71092225862.zip |
Tests: Clean up offset debugging
Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
Ref c0edd8dc18e02999a25768a4946093b015045f80
Diffstat (limited to 'test')
-rw-r--r-- | test/data/testinit.js | 8 | ||||
-rw-r--r-- | test/unit/offset.js | 17 |
2 files changed, 1 insertions, 24 deletions
diff --git a/test/data/testinit.js b/test/data/testinit.js index b0592779e..f2c4ae2a5 100644 --- a/test/data/testinit.js +++ b/test/data/testinit.js @@ -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 ) { diff --git a/test/unit/offset.js b/test/unit/offset.js index 425768f35..b128d3347 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -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( |