| Index: third_party/WebKit/LayoutTests/inspector/elements/styles-3/remove-shadow-host.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector/elements/styles-3/remove-shadow-host.html b/third_party/WebKit/LayoutTests/inspector/elements/styles-3/remove-shadow-host.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2a72053d3a8a5ce5a7e2fd1e13d1bfe5d6b58641
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector/elements/styles-3/remove-shadow-host.html
|
| @@ -0,0 +1,28 @@
|
| +<!DOCTYPE html>
|
| +<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| +<script src="../../../http/tests/inspector/elements-test.js"></script>
|
| +<script>
|
| + function addShadow() {
|
| + var root = host.attachShadow({mode:"open"});
|
| + root.innerHTML = '<link rel="stylesheet" href="data:text/css,#x{color:pink}">';
|
| + }
|
| +
|
| + function test() {
|
| + InspectorTest.cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetAdded, sheetAdded);
|
| + InspectorTest.cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetRemoved, sheetRemoved);
|
| + InspectorTest.evaluateInPage("addShadow()");
|
| +
|
| + function sheetAdded(event) {
|
| + InspectorTest.addResult("Sheet added: "+event.data.sourceURL);
|
| + InspectorTest.evaluateInPage("host.remove()");
|
| + }
|
| +
|
| + function sheetRemoved(event) {
|
| + InspectorTest.addResult("Sheet removed: "+event.data.sourceURL);
|
| + InspectorTest.completeTest();
|
| + }
|
| + }
|
| +</script>
|
| +<body onload="runTest()">
|
| +<div id="host"></div>
|
| +
|
|
|