Skip to content

Commit 40058ae

Browse files
author
Steven Orvell
committed
Skip tests of ::shadow and /deep/ under native Shadow DOM
These features have been removed from the only native implementation of Shadow DOM v0 (Chrome).
1 parent 00a6405 commit 40058ae

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

test/unit/custom-style.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,11 +404,17 @@
404404
});
405405

406406
test('::shadow styles applied', function() {
407+
if (Polymer.Settings.useNativeShadow) {
408+
this.skip();
409+
}
407410
assertComputed(xFoo.$.bar2, '2px');
408411
assertComputed(xFoo.$.bar2.$.baz, '3px');
409412
});
410413

411414
test('/deep/ styles applied', function() {
415+
if (Polymer.Settings.useNativeShadow) {
416+
this.skip();
417+
}
412418
assertComputed(xFoo.$.bar3, '4px');
413419
assertComputed(xFoo.$.bar3.$.baz, '5px');
414420
});

test/unit/preserve-style-include/styling-scoped.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,10 +213,16 @@
213213
});
214214

215215
test('::shadow selectors', function() {
216+
if (Polymer.Settings.useNativeShadow) {
217+
this.skip();
218+
}
216219
assertComputed(styled.$.child.$.shadow, '7px');
217220
});
218221

219222
test('/deep/ selectors', function() {
223+
if (Polymer.Settings.useNativeShadow) {
224+
this.skip();
225+
}
220226
assertComputed(styled.$.child.$.deep, '8px');
221227
});
222228

0 commit comments

Comments
 (0)