Skip to content

Commit

Permalink
skip link rel import type css tests on native imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliott Marquez committed Apr 17, 2018
1 parent a52148a commit 811ee30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/unit/shady-unscoped-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,24 @@
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() {
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);
Expand Down

0 comments on commit 811ee30

Please sign in to comment.