mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Move shadow stuff to its own test in link-rel-attribute.html
This commit is contained in:
parent
f9fb610c1b
commit
cd2b3017c3
3 changed files with 10 additions and 7 deletions
|
@ -568348,7 +568348,7 @@
|
|||
"testharness"
|
||||
],
|
||||
"html/semantics/document-metadata/the-link-element/link-rel-attribute.html": [
|
||||
"45824076fb8696f775582c7bcfab093ebfb3055c",
|
||||
"4baacb7829d841fcef0086d2f1ec6e5fc915179e",
|
||||
"testharness"
|
||||
],
|
||||
"html/semantics/document-metadata/the-link-element/link-rellist.html": [
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
[link-rel-attribute.html]
|
||||
[Untitled]
|
||||
[Removing stylesheet from link rel attribute should remove the stylesheet for light DOM]
|
||||
expected: FAIL
|
||||
|
||||
[Removing stylesheet from link rel attribute should remove the stylesheet for shadow DOM]
|
||||
expected: FAIL
|
||||
|
||||
|
|
|
@ -16,11 +16,6 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
var host = document.querySelector("#host");
|
||||
var shadow = host.attachShadow({ mode: "open" });
|
||||
var tmpl = document.querySelector("template#shadow-dom");
|
||||
var clone = document.importNode(tmpl.content, true);
|
||||
shadow.appendChild(clone);
|
||||
|
||||
function testLinkRelModification(testDiv, testLink) {
|
||||
assert_equals(getComputedStyle(testDiv).color, "rgb(0, 128, 0)");
|
||||
|
@ -38,6 +33,11 @@ test (() => {
|
|||
}, "Removing stylesheet from link rel attribute should remove the stylesheet for light DOM");
|
||||
|
||||
test (() => {
|
||||
var host = document.querySelector("#host");
|
||||
var shadow = host.attachShadow({ mode: "open" });
|
||||
var tmpl = document.querySelector("template#shadow-dom");
|
||||
var clone = document.importNode(tmpl.content, true);
|
||||
shadow.appendChild(clone);
|
||||
testLinkRelModification(shadow.querySelector("#shadow-div"),
|
||||
shadow.querySelector("#shadow-link"));
|
||||
}, "Removing stylesheet from link rel attribute should remove the stylesheet for shadow DOM");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue