diff --git a/test/unit/shady-unscoped-style-import-css.html b/test/unit/shady-unscoped-style-import-css.html deleted file mode 100644 index ebc79b19e0..0000000000 --- a/test/unit/shady-unscoped-style-import-css.html +++ /dev/null @@ -1,12 +0,0 @@ -/* -@license -Copyright (c) 2017 The Polymer Project Authors. All rights reserved. -This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt -The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt -The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt -Code distributed by Google as part of the polymer project is also -subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt -*/ -.import { - border: 2px solid yellow; -} \ No newline at end of file diff --git a/test/unit/shady-unscoped-style-import.js b/test/unit/shady-unscoped-style-import.js index 782b070ca0..f18ddad093 100644 --- a/test/unit/shady-unscoped-style-import.js +++ b/test/unit/shady-unscoped-style-import.js @@ -12,7 +12,6 @@ const $_documentContainer = document.createElement('div'); $_documentContainer.setAttribute('style', 'display: none;'); $_documentContainer.innerHTML = ` - - `; document.head.appendChild($_documentContainer); diff --git a/test/unit/shady-unscoped-style.html b/test/unit/shady-unscoped-style.html index 2ffb4fd801..62712d94c1 100644 --- a/test/unit/shady-unscoped-style.html +++ b/test/unit/shady-unscoped-style.html @@ -99,29 +99,12 @@ var el1 = document.querySelector('my-element'); 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'); - assertComputed(el2.$.fromImport, '2px'); - }); - test('shared and @apply apply when used with unscoped styles', function() { 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 || (window.HTMLImports && window.HTMLImports.useNative)) { - this.skip(); - } - assert.equal(document.head.querySelectorAll('style[shady-unscoped]').length, 2); - }); - test('@apply does not apply under ShadyDOM for shady-unscoped styles', function() { assertComputed(el1.$.fromStyle, '0px', 'margin-top'); assertComputed(el2.$.fromStyle, '0px', 'margin-top');