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

Side by Side Diff: third_party/WebKit/LayoutTests/inspector/elements/shadow/breadcrumb-shadow-roots.html

Issue 1408443003: Add Element.attachShadow under the ShadowDOMV1 runtime flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rewrite a test Created 5 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
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd"> 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.or g/TR/html4/loose.dtd">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../http/tests/inspector/inspector-test.js"></script> 4 <script src="../../../http/tests/inspector/inspector-test.js"></script>
5 <script src="../../../http/tests/inspector/elements-test.js"></script> 5 <script src="../../../http/tests/inspector/elements-test.js"></script>
6 <script> 6 <script>
7 7
8 function loaded() 8 function loaded()
9 { 9 {
10 var template = document.querySelector("#tmpl"); 10 var template = document.querySelector("#tmpl");
11 var root = document.querySelector("#host").createShadowRoot(); 11 var root = document.querySelector("#host").createShadowRoot();
12 root.appendChild(template.content.cloneNode(true)); 12 root.appendChild(template.content.cloneNode(true));
13 var rootClosed = document.querySelector("#hostClosed").createShadowRoot({mod e: 'closed'}); 13 var rootClosed = document.querySelector("#hostClosed").attachShadow({mode: ' closed'});
14 rootClosed.appendChild(template.content.cloneNode(true)); 14 rootClosed.appendChild(template.content.cloneNode(true));
15 runTest(); 15 runTest();
16 } 16 }
17 17
18 function test() 18 function test()
19 { 19 {
20 WebInspector.settingForTest("showUAShadowDOM").set(true); 20 WebInspector.settingForTest("showUAShadowDOM").set(true);
21 InspectorTest.expandElementsTree(step0); 21 InspectorTest.expandElementsTree(step0);
22 22
23 function step0() 23 function step0()
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 <div id="host"></div> 80 <div id="host"></div>
81 <div id="hostClosed"></div> 81 <div id="hostClosed"></div>
82 <template id="tmpl"> 82 <template id="tmpl">
83 <style>.red { color: red; }</style> 83 <style>.red { color: red; }</style>
84 <div id="inner" class="red">inner</div> 84 <div id="inner" class="red">inner</div>
85 </template> 85 </template>
86 86
87 87
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698