@@ -1449,7 +1449,7 @@ QUnit.test( "zIndex, default, switching after initialization", function( assert
1449
1449
} ) ;
1450
1450
1451
1451
QUnit . test ( "iframeFix" , function ( assert ) {
1452
- assert . expect ( 6 ) ;
1452
+ assert . expect ( 5 ) ;
1453
1453
1454
1454
var element = $ ( "<div>" ) . appendTo ( "#qunit-fixture" ) . draggable ( { iframeFix : true } ) ,
1455
1455
element2 = $ ( "<div>" ) . appendTo ( "#qunit-fixture" ) . draggable ( { iframeFix : ".iframe" } ) ,
@@ -1465,22 +1465,15 @@ QUnit.test( "iframeFix", function( assert ) {
1465
1465
} ) ;
1466
1466
1467
1467
element . one ( "drag" , function ( ) {
1468
- var divOffset , iframeOffset ,
1469
- div = $ ( this ) . children ( ) . not ( "iframe" ) ;
1468
+ var div = $ ( this ) . children ( ) . not ( "iframe" ) ;
1470
1469
1471
1470
// https://bugs.jqueryui.com/ticket/9671
1472
1471
// iframeFix doesn't handle iframes that move
1473
1472
assert . equal ( div . length , 1 , "blocking div added as sibling" ) ;
1474
1473
assert . equal ( div . outerWidth ( ) , iframe . outerWidth ( ) , "blocking div is wide enough" ) ;
1475
1474
assert . equal ( div . outerHeight ( ) , iframe . outerHeight ( ) , "blocking div is tall enough" ) ;
1476
1475
1477
- divOffset = div . offset ( ) ;
1478
- iframeOffset = iframe . offset ( ) ;
1479
-
1480
- // Support: Edge <79 only
1481
- // In Edge Legacy these values differ a little.
1482
- assert . ok ( Math . abs ( divOffset . top - iframeOffset . top ) < 0.25 , "Check top within 0.25 of expected" ) ;
1483
- assert . ok ( Math . abs ( divOffset . left - iframeOffset . left ) < 0.25 , "Check left within 0.25 of expected" ) ;
1476
+ assert . deepEqual ( div . offset ( ) , iframe . offset ( ) , "blocking div is tall enough" ) ;
1484
1477
} ) ;
1485
1478
1486
1479
element . simulate ( "drag" , {
0 commit comments