Skip to content

Commit

Permalink
Skip certain tests in Edge 16
Browse files Browse the repository at this point in the history
- Skip tests with CSS Custom Properties used in keyframes due to
https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12084341/

- Skip weird failure with CSS Custom Properties and `font-family`
property.
  • Loading branch information
dfreedm committed Jan 20, 2018
1 parent 36fa08a commit 09897d1
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,11 @@
assertComputed(el, '11px', 'right');
assertComputed(el, '12px', 'top');

// Avoid Edge 16 bug with CSS Custom Properties and Fonts.
if (navigator.userAgent.match('Edge/16') && (!window.ShadyCSS || window.ShadyCSS.nativeCss)) {
return;
}

// Because FireFox and Chrome parse font-family differently...
var computed = getComputedStyle(el);
assert.equal(computed['font-family'].replace(/['"]+/g, ''), 'Varela font');
Expand Down
5 changes: 5 additions & 0 deletions test/unit/styling-cross-scope-apply.html
Original file line number Diff line number Diff line change
Expand Up @@ -588,6 +588,11 @@
});

test('mixins apply to @keyframe rules', function(done) {
if (navigator.userAgent.match('Edge/16') && (!window.ShadyCSS || window.ShadyCSS.nativeCss)) {
// skip test due to missing variable support in keyframes
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12084341/
this.skip();
}
var xKeyframes1 = styled.$.keyframes1;
var xKeyframes2 = styled.$.keyframes2;
var completed = 0;
Expand Down
5 changes: 5 additions & 0 deletions test/unit/styling-scoped.html
Original file line number Diff line number Diff line change
Expand Up @@ -859,6 +859,11 @@
});

test('keyframes change scope', function(done) {
if (navigator.userAgent.match('Edge/16') && (!window.ShadyCSS || window.ShadyCSS.nativeCss)) {
// skip test due to missing variable support in keyframes
// https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/12084341/
this.skip();
}
var xKeyframes = styled.$.keyframes;

var onAnimationEnd = function() {
Expand Down

0 comments on commit 09897d1

Please sign in to comment.