aboutsummaryrefslogtreecommitdiffstats
path: root/test/unit/dimensions.js
diff options
context:
space:
mode:
authorMichał Gołębiowski-Owczarek <m.goleb@gmail.com>2019-04-29 22:56:09 +0200
committerGitHub <noreply@github.com>2019-04-29 22:56:09 +0200
commitcf84696fd1d7fe314a11492606529b5a658ee9e3 (patch)
tree8fd4a45dd755e5f1215adbc82e7870727c8164e8 /test/unit/dimensions.js
parentbde53edcf4bd6c975d068eed4eb16c5ba09c1cff (diff)
downloadjquery-cf84696fd1d7fe314a11492606529b5a658ee9e3.tar.gz
jquery-cf84696fd1d7fe314a11492606529b5a658ee9e3.zip
Core: Drop support for IE <11, iOS <11, Firefox <65, Android Browser & PhantomJS
Also, update support comments format to match format described in: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-69379197 with the change from: https://github.com/jquery/contribute.jquery.org/issues/95#issuecomment-448998379 (open-ended ranges end with `+`). Fixes gh-3950 Fixes gh-4299 Closes gh-4347
Diffstat (limited to 'test/unit/dimensions.js')
-rw-r--r--test/unit/dimensions.js34
1 files changed, 5 insertions, 29 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js
index 23a58523c..4a3ad5ecb 100644
--- a/test/unit/dimensions.js
+++ b/test/unit/dimensions.js
@@ -687,19 +687,7 @@ QUnit.test( "interaction with scrollbars (gh-3589)", function( assert ) {
.css( { position: "relative" } ),
$boxes = jQuery(
[ plainBox[ 0 ], contentBox[ 0 ], borderBox[ 0 ], relativeBorderBox[ 0 ] ]
- ).appendTo( parent ),
-
- // Support: IE 9 only
- // Computed width seems to report content width even with "box-sizing: border-box", and
- // "overflow: scroll" actually _shrinks_ the element (gh-3699).
- borderBoxLoss =
- borderBox.clone().css( { overflow: "auto" } ).appendTo( parent )[ 0 ].offsetWidth -
- borderBox[ 0 ].offsetWidth;
-
- if ( borderBoxLoss > 0 ) {
- borderBox[ 0 ].style.width = ( size + borderBoxLoss ) + "px";
- borderBox[ 0 ].style.height = ( size + borderBoxLoss ) + "px";
- }
+ ).appendTo( parent );
for ( i = 0; i < 3; i++ ) {
if ( i === 1 ) {
@@ -758,10 +746,9 @@ QUnit.test( "outerWidth/Height for table cells and textarea with border-box in I
$secondTh = jQuery( "<th style='width: 190px;padding: 5px' />" ),
$thirdTh = jQuery( "<th style='width: 180px;padding: 5px' />" ),
- // 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
+ // Most 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( "<td style='height: 20px;padding: 5px;border: 1px solid;line-height:18px'>text</td>" ),
$tbody = jQuery( "<tbody />" ).appendTo( $table ),
@@ -775,18 +762,7 @@ QUnit.test( "outerWidth/Height for table cells and textarea with border-box in I
assert.strictEqual( $firstTh.outerWidth(), 200, "First th has outerWidth 200." );
assert.strictEqual( $secondTh.outerWidth(), 200, "Second th has outerWidth 200." );
assert.strictEqual( $thirdTh.outerWidth(), 200, "Third th has outerWidth 200." );
-
- // Support: Android 4.0-4.3 only
- // 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.
- if ( /android 4\.[0-3]/i.test( navigator.userAgent ) ) {
- assert.ok( [ 30, 32 ].indexOf( $td.outerHeight() ) > -1,
- "outerHeight of td with border-box should include padding." );
- } else {
- assert.strictEqual( $td.outerHeight(), 30, "outerHeight of td with border-box should include padding." );
- }
+ assert.strictEqual( $td.outerHeight(), 30, "outerHeight of td with border-box should include padding." );
assert.strictEqual( $textarea.outerHeight(), 6, "outerHeight of textarea with border-box should include padding and border." );
} );