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

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

Issue 208503004: Remove prefixed Shadow DOM APIs in Element. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector/inspector-test.js"></script> 3 <script src="../inspector/inspector-test.js"></script>
4 <script src="../inspector/elements-test.js"></script> 4 <script src="../inspector/elements-test.js"></script>
5 <script> 5 <script>
6 6
7 function reopenWebInspector(objectId) 7 function reopenWebInspector(objectId)
8 { 8 {
9 window.didReopen = 1; 9 window.didReopen = 1;
10 testRunner.closeWebInspector(); 10 testRunner.closeWebInspector();
11 setTimeout(function() { 11 setTimeout(function() {
12 testRunner.showWebInspector(); 12 testRunner.showWebInspector();
13 runTest(); 13 runTest();
14 }, 0); 14 }, 0);
15 } 15 }
16 16
17 function createShadowRoot() 17 function createShadowRoot()
18 { 18 {
19 delete window.didReopen; 19 delete window.didReopen;
20 if (window.testRunner) 20 if (window.testRunner)
21 testRunner.waitUntilDone(); 21 testRunner.waitUntilDone();
22 var template = document.querySelector('#tmpl'); 22 var template = document.querySelector('#tmpl');
23 var root = document.querySelector('#host').webkitCreateShadowRoot(); 23 var root = document.querySelector('#host').createShadowRoot();
24 root.appendChild(template.content.cloneNode(true)); 24 root.appendChild(template.content.cloneNode(true));
25 if (window.testRunner) 25 if (window.testRunner)
26 testRunner.showWebInspector(); 26 testRunner.showWebInspector();
27 runTest(); 27 runTest();
28 } 28 }
29 29
30 function test() 30 function test()
31 { 31 {
32 RuntimeAgent.evaluate("window.didReopen", dispatch); 32 RuntimeAgent.evaluate("window.didReopen", dispatch);
33 33
(...skipping 29 matching lines...) Expand all
63 63
64 <body onload="createShadowRoot()"> 64 <body onload="createShadowRoot()">
65 <p>This test checks that style sheets hosted inside shadow roots could be inspec ted if inspector is reopened.</p> 65 <p>This test checks that style sheets hosted inside shadow roots could be inspec ted if inspector is reopened.</p>
66 <div id="host"></div> 66 <div id="host"></div>
67 <template id="tmpl"> 67 <template id="tmpl">
68 <style> .red { color: red; } </style> 68 <style> .red { color: red; } </style>
69 <div id="inner" class="red">hi!</div> 69 <div id="inner" class="red">hi!</div>
70 </template> 70 </template>
71 </body> 71 </body>
72 </html> 72 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698