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

Side by Side Diff: LayoutTests/http/tests/inspector-enabled/shadow-dom-rules.html

Issue 23629018: DevTools: show styles for shadow dom elements (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix inspector-enabled test Created 7 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector-enabled/shadow-dom-rules-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 <html>
2 <head>
3 <script src="../inspector/inspector-test.js"></script>
4 <script src="../inspector/elements-test.js"></script>
5 <script>
6
7 function createShadowRoot()
8 {
9 if (window.testRunner)
10 testRunner.waitUntilDone();
11 var template = document.querySelector('#tmpl');
12 var root = document.querySelector('#host').webkitCreateShadowRoot();
13 root.appendChild(template.content.cloneNode(true));
14 if (window.testRunner)
15 testRunner.showWebInspector();
16 runTest();
17 }
18
19 function test()
20 {
21 InspectorTest.runTestSuite([
22 function testInit(next)
23 {
24 WebInspector.settings.showShadowDOM.set(true);
25 InspectorTest.selectNodeAndWaitForStyles("inner", next);
26 },
27
28 function testDumpStyles(next)
29 {
30 InspectorTest.dumpSelectedElementStyles(true);
31 WebInspector.settings.showShadowDOM.set(false);
32 next();
33 }
34 ]);
35 }
36 </script>
37 </head>
38
39 <body onload="createShadowRoot()">
40 <p>
41 This test checks that style sheets hosted inside shadow roots
42 could be inspected.
43 </p>
44 <div id="host"></div>
45 <template id="tmpl">
46 <style> .red { color: red; } </style>
47 <div id="inner" class="red">hi!</div>
48 </template>
49 </body>
50 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/http/tests/inspector-enabled/shadow-dom-rules-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698