mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
parent
da533c6acc
commit
e94b5b0bbf
@ -239,13 +239,7 @@ this.testIframe = function( title, fileName, func, wrapper ) {
|
|||||||
var done = assert.async(),
|
var done = assert.async(),
|
||||||
$iframe = supportjQuery( "<iframe/>" )
|
$iframe = supportjQuery( "<iframe/>" )
|
||||||
.attr( { id: "qunit-fixture-iframe", src: url( "./data/" + fileName ) } )
|
.attr( { id: "qunit-fixture-iframe", src: url( "./data/" + fileName ) } )
|
||||||
.css( {
|
.css( { position: "absolute", top: "0", left: "-600px", width: "500px" } );
|
||||||
position: "absolute",
|
|
||||||
top: "0",
|
|
||||||
left: "-600px",
|
|
||||||
height: "300px",
|
|
||||||
width: "500px"
|
|
||||||
} );
|
|
||||||
|
|
||||||
// Try to overcome TestSwarm iframe visibilty quirks
|
// Try to overcome TestSwarm iframe visibilty quirks
|
||||||
if ( QUnit.isSwarm ) {
|
if ( QUnit.isSwarm ) {
|
||||||
|
@ -674,23 +674,6 @@ QUnit.test( "chaining", function( assert ) {
|
|||||||
doc.body.style.position = bodyPos;
|
doc.body.style.position = bodyPos;
|
||||||
win.scrollTo( scrollLeft, scrollTop );
|
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
|
// Verify expected document offset
|
||||||
supportjQuery.each( expectations, function( id, descriptor ) {
|
supportjQuery.each( expectations, function( id, descriptor ) {
|
||||||
assert.deepEqual(
|
assert.deepEqual(
|
||||||
|
Loading…
Reference in New Issue
Block a user