Skip to content

Commit

Permalink
Skip tests of ::shadow and /deep/ under native Shadow DOM
Browse files Browse the repository at this point in the history
These features have been removed from the only native implementation of Shadow DOM v0 (Chrome).
  • Loading branch information
Steven Orvell committed Oct 18, 2017
1 parent 00a6405 commit 40058ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/unit/custom-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -404,11 +404,17 @@
});

test('::shadow styles applied', function() {
if (Polymer.Settings.useNativeShadow) {
this.skip();
}
assertComputed(xFoo.$.bar2, '2px');
assertComputed(xFoo.$.bar2.$.baz, '3px');
});

test('/deep/ styles applied', function() {
if (Polymer.Settings.useNativeShadow) {
this.skip();
}
assertComputed(xFoo.$.bar3, '4px');
assertComputed(xFoo.$.bar3.$.baz, '5px');
});
Expand Down
6 changes: 6 additions & 0 deletions test/unit/preserve-style-include/styling-scoped.html
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,16 @@
});

test('::shadow selectors', function() {
if (Polymer.Settings.useNativeShadow) {
this.skip();
}
assertComputed(styled.$.child.$.shadow, '7px');
});

test('/deep/ selectors', function() {
if (Polymer.Settings.useNativeShadow) {
this.skip();
}
assertComputed(styled.$.child.$.deep, '8px');
});

Expand Down

0 comments on commit 40058ae

Please sign in to comment.