From: Oleg Gaidarenko Date: Fri, 13 Nov 2015 16:16:30 +0000 (+0300) Subject: Offset: do not run tests which break without back-incompat change X-Git-Tag: 2.2.0~28 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=9d1d4c272a58ced36242d90b3f0462c2bbb972a3;p=jquery.git Offset: do not run tests which break without back-incompat change --- diff --git a/test/unit/offset.js b/test/unit/offset.js index 2ee0c12ea..ff1f02099 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -415,7 +415,7 @@ testIframe( "offset/table", "table", function( $, window, document, assert ) { } ); testIframe( "offset/scroll", "scroll", function( $, win, doc, assert ) { - assert.expect( 30 ); + assert.expect( 28 ); assert.equal( $( "#scroll-1" ).offset().top, 7, "jQuery('#scroll-1').offset().top" ); assert.equal( $( "#scroll-1" ).offset().left, 7, "jQuery('#scroll-1').offset().left" ); @@ -426,8 +426,8 @@ testIframe( "offset/scroll", "scroll", function( $, win, doc, assert ) { // These tests are solely for master/compat consistency // Retrieving offset on disconnected/hidden elements is not officially // valid input, but will return zeros for back-compat - assert.equal( $( "#hidden" ).offset().top, 0, "Hidden elements do not subtract scroll" ); - assert.equal( $( "#hidden" ).offset().left, 0, "Hidden elements do not subtract scroll" ); + // assert.equal( $( "#hidden" ).offset().top, 0, "Hidden elements do not subtract scroll" ); + // assert.equal( $( "#hidden" ).offset().left, 0, "Hidden elements do not subtract scroll" ); // scroll offset tests .scrollTop/Left assert.equal( $( "#scroll-1" ).scrollTop(), 5, "jQuery('#scroll-1').scrollTop()" );