From 811ee301a5221da660f61d3183950e3570e79a15 Mon Sep 17 00:00:00 2001 From: Elliott Marquez Date: Tue, 17 Apr 2018 11:18:20 -0700 Subject: [PATCH] skip link rel import type css tests on native imports --- test/unit/shady-unscoped-style.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/unit/shady-unscoped-style.html b/test/unit/shady-unscoped-style.html index fb2af89514..4b2db71c0f 100644 --- a/test/unit/shady-unscoped-style.html +++ b/test/unit/shady-unscoped-style.html @@ -100,6 +100,9 @@ var el2 = document.querySelector('my-element2'); test('unscoped styles apply', function() { + if (window.HTMLImports && window.HTMLImports.useNative) { + this.skip() + } assertComputed(el1.$.fromStyle, '1px'); assertComputed(el1.$.fromImport, '2px'); assertComputed(el2.$.fromStyle, '1px'); @@ -107,13 +110,14 @@ }); test('shared and @apply apply when used with unscoped styles', function() { + debugger; assertComputed(el1.$.fromStyle, '10px', 'padding-top'); assertComputed(el1.$.normal, '3px'); assertComputed(el2.$.normal, '3px'); }); test('unscoped styling de-duped in ShadyDOM', function() { - if (!window.ShadyDOM) { + if (!window.ShadyDOM || (window.HTMLImports && window.HTMLImports.useNative)) { this.skip(); } assert.equal(document.head.querySelectorAll('style[shady-unscoped]').length, 2);