From a2a73db99c059cc1dc893c981e87f5e2bbc8b411 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20Go=C5=82=C4=99biowski-Owczarek?= Date: Wed, 27 Mar 2019 15:47:33 +0100 Subject: [PATCH] Tests: Make Android Browser 4.0-4.3 dimensions tests green Android Browser disregards td's box-sizing, treating it like it was content-box. Unlike in IE, offsetHeight shares the same issue so there's no easy way to workaround the issue without incurring high size penalty. Let's at least check we get the size as the browser sees it. Also, fix the nearby support comment syntax. Closes gh-4335 --- test/unit/dimensions.js | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index 3f690cecf..23a58523c 100644 --- a/test/unit/dimensions.js +++ b/test/unit/dimensions.js @@ -757,13 +757,16 @@ QUnit.test( "outerWidth/Height for table cells and textarea with border-box in I $firstTh = jQuery( "" ), $secondTh = jQuery( "" ), $thirdTh = jQuery( "" ), - // Support Firefox 63, Edge 16-17, Android 8, iOS 7-11 + + // Support: Firefox 63, Edge 16-17, Android 8, iOS 7-11 // These browsers completely ignore the border-box and height settings // The computed height is instead just line-height + border // Either way, what we're doing in css.js is correct $td = jQuery( "text" ), + $tbody = jQuery( "" ).appendTo( $table ), $textarea = jQuery( "