diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2019-05-13 21:39:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-13 21:39:56 +0200 |
commit | 3527a3840585e6a359cd712591c9c57398357b9b (patch) | |
tree | 41446f392d9a8984e31297df3252d1b538f4191e /test/unit/dimensions.js | |
parent | ccbd6b93424cbdbf86f07a86c2e55cbab497d7a3 (diff) | |
download | jquery-3527a3840585e6a359cd712591c9c57398357b9b.tar.gz jquery-3527a3840585e6a359cd712591c9c57398357b9b.zip |
Core: Remove IE-specific support tests, rely on document.documentMode
Also, update some tests to IE-sniff when deciding whether
to skip a test.
Fixes gh-4386
Closes gh-4387
Diffstat (limited to 'test/unit/dimensions.js')
-rw-r--r-- | test/unit/dimensions.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/dimensions.js b/test/unit/dimensions.js index 4a3ad5ecb..d20a56c3b 100644 --- a/test/unit/dimensions.js +++ b/test/unit/dimensions.js @@ -659,9 +659,9 @@ QUnit.test( "interaction with scrollbars (gh-3589)", function( assert ) { parent = jQuery( "<div/>" ) .css( { position: "absolute", width: "1000px", height: "1000px" } ) .appendTo( "#qunit-fixture" ), - fraction = jQuery.support.boxSizingReliable() ? - jQuery( "<div style='width:4.5px;'/>" ).appendTo( parent ).width() % 1 : - 0, + + // Workarounds for IE kill fractional output here. + fraction = document.documentMode ? 0 : 0.5, borderWidth = 1, padding = 2, size = 100 + fraction, |