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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../../../http/tests/inspector/inspector-test.js"></script>
3 <script src="../../../http/tests/inspector/elements-test.js"></script>
4 <script>
5 function addShadow() {
6 var root = host.attachShadow({mode:"open"});
7 root.innerHTML = '<link rel="stylesheet" href="data:text/css,#x{color:pink}" >';
8 }
9
10 function test() {
11 InspectorTest.cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetAdded, sheetAdded);
12 InspectorTest.cssModel.addEventListener(SDK.CSSModel.Events.StyleSheetRemove d, sheetRemoved);
13 InspectorTest.evaluateInPage("addShadow()");
14
15 function sheetAdded(event) {
16 InspectorTest.addResult("Sheet added: "+event.data.sourceURL);
17 InspectorTest.evaluateInPage("host.remove()");
18 }
19
20 function sheetRemoved(event) {
21 InspectorTest.addResult("Sheet removed: "+event.data.sourceURL);
22 InspectorTest.completeTest();
23 }
24 }
25 </script>
26 <body onload="runTest()">
27 <div id="host"></div>
28
OLDNEW
« 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