From 9f2dcb93f848a698602cb7cde1128e7e6907d9cc Mon Sep 17 00:00:00 2001 From: Oleg Gaidarenko Date: Tue, 22 Dec 2015 17:46:47 +0300 Subject: [PATCH] Offset: do not run tests which break without back-incompat change See 9d1d4c272a58ced36242d90b3f0462c2bbb972a3 --- test/unit/offset.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/offset.js b/test/unit/offset.js index 783873dbe..48bde9239 100644 --- a/test/unit/offset.js +++ b/test/unit/offset.js @@ -405,7 +405,7 @@ testIframe( "offset/table", "table", function( $, window, document, assert ) { } ); testIframe( "offset/scroll", "scroll", function( $, win, doc, assert ) { - assert.expect( 30 ); + assert.expect( 28 ); // If we're going to bastardize the tests, let's just DO it var ie = /msie 8/i.test( navigator.userAgent ); @@ -427,8 +427,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()" ); -- 2.39.5