diff options
author | Michał Gołębiowski-Owczarek <m.goleb@gmail.com> | 2018-06-18 18:48:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 18:48:15 +0200 |
commit | 81d829b3573e6b3581a7f127040aad84d345a832 (patch) | |
tree | 2c3b336cf2062f49fc635b5d764d9a7d9b45f496 /test | |
parent | 2348f3996748fc805903e45dbc598ec570d49bb0 (diff) | |
download | jquery-81d829b3573e6b3581a7f127040aad84d345a832.tar.gz jquery-81d829b3573e6b3581a7f127040aad84d345a832.zip |
Test: enable a spec testing CSS whitespace preserving in Edge 17
In Edge 14-16 setting a style property to a whitespace-only value resets it to
the default, forcing us to skip a relevant CSS test in Edge. Now that Edge 17
has fixed the issue we can re-enable this test there.
Ref gh-3204
Closes gh-4101
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/css.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/css.js b/test/unit/css.js index 96a231726..a21a58b9b 100644 --- a/test/unit/css.js +++ b/test/unit/css.js @@ -1348,11 +1348,11 @@ QUnit.test( "Keep the last style if the new one isn't recognized by the browser assert.equal( el.css( "position" ), "absolute", "The old style is kept when setting an unrecognized value" ); } ); -// Support: Edge 14 - 15 +// Support: Edge 14 - 16 only // Edge collapses whitespace-only values when setting a style property and // there is no easy way for us to work around it. Just skip the test there // and hope for the better future. -QUnit[ /\bedge\//i.test( navigator.userAgent ) ? "skip" : "test" ]( +QUnit[ /\bedge\/16\./i.test( navigator.userAgent ) ? "skip" : "test" ]( "Keep the last style if the new one is a non-empty whitespace (gh-3204)", function( assert ) { assert.expect( 1 ); |