@@ -406,7 +406,7 @@ testIframe( "offset/table", "table", function( $, window, document, assert ) {
406406} ) ;
407407
408408testIframe ( "offset/scroll" , "scroll" , function ( $ , win , doc , assert ) {
409- assert . expect ( 30 ) ;
409+ assert . expect ( 24 ) ;
410410
411411 assert . equal ( $ ( "#scroll-1" ) . offset ( ) . top , 7 , "jQuery('#scroll-1').offset().top" ) ;
412412 assert . equal ( $ ( "#scroll-1" ) . offset ( ) . left , 7 , "jQuery('#scroll-1').offset().left" ) ;
@@ -462,17 +462,6 @@ testIframe( "offset/scroll", "scroll", function( $, win, doc, assert ) {
462462 assert . notEqual ( $ ( ) . scrollLeft ( null ) , null , "jQuery().scrollLeft(null) testing setter on empty jquery object" ) ;
463463 assert . strictEqual ( $ ( ) . scrollTop ( ) , undefined , "jQuery().scrollTop() testing getter on empty jquery object" ) ;
464464 assert . strictEqual ( $ ( ) . scrollLeft ( ) , undefined , "jQuery().scrollLeft() testing getter on empty jquery object" ) ;
465-
466- // Tests position after parent scrolling (#15239)
467- $ ( "#scroll-1" ) . scrollTop ( 0 ) ;
468- $ ( "#scroll-1" ) . scrollLeft ( 0 ) ;
469- assert . equal ( $ ( "#scroll-1-1" ) . position ( ) . top , 6 , "jQuery('#scroll-1-1').position().top unaffected by parent scrolling" ) ;
470- assert . equal ( $ ( "#scroll-1-1" ) . position ( ) . left , 6 , "jQuery('#scroll-1-1').position().left unaffected by parent scrolling" ) ;
471-
472- $ ( "#scroll-1" ) . scrollTop ( 5 ) ;
473- $ ( "#scroll-1" ) . scrollLeft ( 5 ) ;
474- assert . equal ( $ ( "#scroll-1-1" ) . position ( ) . top , 6 , "jQuery('#scroll-1-1').position().top unaffected by parent scrolling" ) ;
475- assert . equal ( $ ( "#scroll-1-1" ) . position ( ) . left , 6 , "jQuery('#scroll-1-1').position().left unaffected by parent scrolling" ) ;
476465} ) ;
477466
478467testIframe ( "offset/body" , "body" , function ( $ , window , document , assert ) {
@@ -486,6 +475,7 @@ testIframe( "offset/body", "body", function( $, window, document, assert ) {
486475
487476QUnit . test ( "chaining" , function ( assert ) {
488477 assert . expect ( 3 ) ;
478+
489479 var coords = { "top" : 1 , "left" : 1 } ;
490480 assert . equal ( jQuery ( "#absolute-1" ) . offset ( coords ) . jquery , jQuery . fn . jquery , "offset(coords) returns jQuery object" ) ;
491481 assert . equal ( jQuery ( "#non-existent" ) . offset ( coords ) . jquery , jQuery . fn . jquery , "offset(coords) with empty jQuery set returns jQuery object" ) ;
0 commit comments