Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/styles-3/remove-shadow-host.html

Issue 2766373002: Notify inspector of stylesheet changes when removing tree scopes. (Closed)
Patch Set: Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/styles-3/remove-shadow-host-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
+
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/styles-3/remove-shadow-host-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698