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

Side by Side Diff: LayoutTests/inspector/console/shadow-element.html

Issue 197283031: DevTools: fix author shadow dom inspection mode, speacial-case ua. Fix crash from the bug. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: For landing 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="../../http/tests/inspector/inspector-test.js"></script> 3 <script src="../../http/tests/inspector/inspector-test.js"></script>
4 <script src="../../http/tests/inspector/elements-test.js"></script> 4 <script src="../../http/tests/inspector/elements-test.js"></script>
5 <script> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 WebInspector.settings.showShadowDOM.set(true); 9 WebInspector.settings.showUAShadowDOM.set(true);
10 InspectorTest.selectNodeWithId("shadow", step1); 10 InspectorTest.selectNodeWithId("shadow", step1);
11 11
12 function step1() 12 function step1()
13 { 13 {
14 InspectorTest.evaluateInConsoleAndDump("'Author shadow element: ' + $0.i d", step3); 14 InspectorTest.evaluateInConsoleAndDump("'Author shadow element: ' + $0.i d", step3);
15 } 15 }
16 16
17 function step3() 17 function step3()
18 { 18 {
19 InspectorTest.selectNodeWithId("user-agent-host", step4); 19 InspectorTest.selectNodeWithId("user-agent-host", step4);
(...skipping 20 matching lines...) Expand all
40 40
41 <div><div><div id="host"></div></div></div> 41 <div><div><div id="host"></div></div></div>
42 <script> 42 <script>
43 var host = document.querySelector('#host'); 43 var host = document.querySelector('#host');
44 var sr = host.createShadowRoot(); 44 var sr = host.createShadowRoot();
45 sr.innerHTML = "<div><div><div id='shadow'><input id='user-agent-host' type='r ange'></div></div></div>"; 45 sr.innerHTML = "<div><div><div id='shadow'><input id='user-agent-host' type='r ange'></div></div></div>";
46 </script> 46 </script>
47 47
48 </body> 48 </body>
49 </html> 49 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698