@@ -1449,7 +1449,7 @@ QUnit.test( "zIndex, default, switching after initialization", function( assert
14491449} ) ;
14501450
14511451QUnit . test ( "iframeFix" , function ( assert ) {
1452- assert . expect ( 6 ) ;
1452+ assert . expect ( 5 ) ;
14531453
14541454 var element = $ ( "<div>" ) . appendTo ( "#qunit-fixture" ) . draggable ( { iframeFix : true } ) ,
14551455 element2 = $ ( "<div>" ) . appendTo ( "#qunit-fixture" ) . draggable ( { iframeFix : ".iframe" } ) ,
@@ -1465,22 +1465,15 @@ QUnit.test( "iframeFix", function( assert ) {
14651465 } ) ;
14661466
14671467 element . one ( "drag" , function ( ) {
1468- var divOffset , iframeOffset ,
1469- div = $ ( this ) . children ( ) . not ( "iframe" ) ;
1468+ var div = $ ( this ) . children ( ) . not ( "iframe" ) ;
14701469
14711470 // https://bugs.jqueryui.com/ticket/9671
14721471 // iframeFix doesn't handle iframes that move
14731472 assert . equal ( div . length , 1 , "blocking div added as sibling" ) ;
14741473 assert . equal ( div . outerWidth ( ) , iframe . outerWidth ( ) , "blocking div is wide enough" ) ;
14751474 assert . equal ( div . outerHeight ( ) , iframe . outerHeight ( ) , "blocking div is tall enough" ) ;
14761475
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" ) ;
14841477 } ) ;
14851478
14861479 element . simulate ( "drag" , {
0 commit comments