Skip to content

Commit

Permalink
removed link rel import type css tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Elliott Marquez committed Apr 17, 2018
1 parent 6905dd1 commit 57d4190
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
12 changes: 0 additions & 12 deletions test/unit/shady-unscoped-style-import-css.html

This file was deleted.

2 changes: 0 additions & 2 deletions test/unit/shady-unscoped-style-import.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const $_documentContainer = document.createElement('div');
$_documentContainer.setAttribute('style', 'display: none;');

$_documentContainer.innerHTML = `<dom-module id="global-shared1">
<link rel="import" type="css" shady-unscoped href="shady-unscoped-style-import-css.html">
<template>
<style shady-unscoped="">
:root {
Expand All @@ -32,7 +31,6 @@ $_documentContainer.innerHTML = `<dom-module id="global-shared1">
</style>
</template>
</dom-module><dom-module id="global-shared2">
<link rel="import" type="css" shady-unscoped href="shady-unscoped-style-import-css.html">
</dom-module>`;

document.head.appendChild($_documentContainer);
17 changes: 0 additions & 17 deletions test/unit/shady-unscoped-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 57d4190

Please sign in to comment.