From 40058aeb782f3ca75695a758c8df7506c92b5860 Mon Sep 17 00:00:00 2001 From: Steven Orvell Date: Wed, 18 Oct 2017 11:58:12 -0700 Subject: [PATCH] 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). --- test/unit/custom-style.html | 6 ++++++ test/unit/preserve-style-include/styling-scoped.html | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/test/unit/custom-style.html b/test/unit/custom-style.html index 3e926a51a7..25990dc06f 100644 --- a/test/unit/custom-style.html +++ b/test/unit/custom-style.html @@ -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'); }); diff --git a/test/unit/preserve-style-include/styling-scoped.html b/test/unit/preserve-style-include/styling-scoped.html index a6b5aa9e60..2a4e5fefc8 100644 --- a/test/unit/preserve-style-include/styling-scoped.html +++ b/test/unit/preserve-style-include/styling-scoped.html @@ -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'); });