@@ -412,7 +412,7 @@ testIframe( "offset/table", "table", function( $, window, document, assert ) {
412412} ) ;
413413
414414testIframe ( "offset/scroll" , "scroll" , function ( $ , win , doc , assert ) {
415- assert . expect ( 28 ) ;
415+ assert . expect ( 24 ) ;
416416
417417 // If we're going to bastardize the tests, let's just DO it
418418 var ie = / m s i e [ 6 7 8 ] / i. test ( navigator . userAgent ) ;
@@ -495,25 +495,6 @@ testIframe( "offset/scroll", "scroll", function( $, win, doc, assert ) {
495495 assert . notEqual ( $ ( ) . scrollLeft ( null ) , null , "jQuery().scrollLeft(null) testing setter on empty jquery object" ) ;
496496 assert . strictEqual ( $ ( ) . scrollTop ( ) , null , "jQuery().scrollTop(100) testing setter on empty jquery object" ) ;
497497 assert . strictEqual ( $ ( ) . scrollLeft ( ) , null , "jQuery().scrollLeft(100) testing setter on empty jquery object" ) ;
498-
499- // Tests position after parent scrolling (#15239)
500- $ ( "#scroll-1" ) . scrollTop ( 0 ) ;
501- $ ( "#scroll-1" ) . scrollLeft ( 0 ) ;
502- if ( ie ) {
503- assert . ok ( true , "TestSwarm's iframe has hosed this test in oldIE, we surrender" ) ;
504- } else {
505- assert . equal ( $ ( "#scroll-1-1" ) . position ( ) . top , 6 , "jQuery('#scroll-1-1').position().top unaffected by parent scrolling" ) ;
506- }
507- assert . equal ( $ ( "#scroll-1-1" ) . position ( ) . left , 6 , "jQuery('#scroll-1-1').position().left unaffected by parent scrolling" ) ;
508-
509- $ ( "#scroll-1" ) . scrollTop ( 5 ) ;
510- $ ( "#scroll-1" ) . scrollLeft ( 5 ) ;
511- if ( ie ) {
512- assert . ok ( true , "TestSwarm's iframe has hosed this test in oldIE, we surrender" ) ;
513- } else {
514- assert . equal ( $ ( "#scroll-1-1" ) . position ( ) . top , 6 , "jQuery('#scroll-1-1').position().top unaffected by parent scrolling" ) ;
515- }
516- assert . equal ( $ ( "#scroll-1-1" ) . position ( ) . left , 6 , "jQuery('#scroll-1-1').position().left unaffected by parent scrolling" ) ;
517498} ) ;
518499
519500testIframe ( "offset/body" , "body" , function ( $ , window , document , assert ) {
@@ -528,9 +509,9 @@ testIframe( "offset/body", "body", function( $, window, document, assert ) {
528509QUnit . test ( "chaining" , function ( assert ) {
529510 assert . expect ( 3 ) ;
530511 var coords = { "top" : 1 , "left" : 1 } ;
531- equal ( jQuery ( "#absolute-1" ) . offset ( coords ) . selector , "#absolute-1" , "offset(coords) returns jQuery object" ) ;
532- equal ( jQuery ( "#non-existent" ) . offset ( coords ) . selector , "#non-existent" , "offset(coords) with empty jQuery set returns jQuery object" ) ;
533- equal ( jQuery ( "#absolute-1" ) . offset ( undefined ) . selector , "#absolute-1" , "offset(undefined) returns jQuery object (#5571)" ) ;
512+ assert . equal ( jQuery ( "#absolute-1" ) . offset ( coords ) . selector , "#absolute-1" , "offset(coords) returns jQuery object" ) ;
513+ assert . equal ( jQuery ( "#non-existent" ) . offset ( coords ) . selector , "#non-existent" , "offset(coords) with empty jQuery set returns jQuery object" ) ;
514+ assert . equal ( jQuery ( "#absolute-1" ) . offset ( undefined ) . selector , "#absolute-1" , "offset(undefined) returns jQuery object (#5571)" ) ;
534515} ) ;
535516
536517QUnit . test ( "offsetParent" , function ( assert ) {
0 commit comments