]> source.dussan.org Git - jquery.git/commitdiff
Tests: Clean up offset debugging
authorRichard Gibson <richard.gibson@gmail.com>
Sat, 29 Apr 2017 05:35:20 +0000 (01:35 -0400)
committerRichard Gibson <richard.gibson@gmail.com>
Sat, 29 Apr 2017 05:35:20 +0000 (01:35 -0400)
Ref 1d2df772b4d6e5dbf91df6e75f4a1809f7879ab0
Ref c0edd8dc18e02999a25768a4946093b015045f80

test/data/testinit.js
test/unit/offset.js

index b0592779e862631cab85cee2a451ae5672180bc1..f2c4ae2a54ea1f170bcaae93df37fbc1a51abe29 100644 (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 ) {
index 425768f35dcbea0248fb33102e7c2fc9b27d58d8..b128d3347e85367ac486e4fc7c7705ad5b52170f 100644 (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(