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

Side by Side Diff: LayoutTests/http/tests/inspector/template-content-inspect-crash.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="inspector-test.js"></script> 3 <script src="inspector-test.js"></script>
4 <script src="elements-test.js"></script> 4 <script src="elements-test.js"></script>
5 <script src="console-test.js"></script> 5 <script src="console-test.js"></script>
6 <script> 6 <script>
7 7
8 function test() 8 function test()
9 { 9 {
10 if (!window.testRunner) { 10 if (!window.testRunner) {
11 console.log("This test requires testRunner"); 11 console.log("This test requires testRunner");
12 return; 12 return;
13 } else { 13 } else {
14 window.testRunner.setAllowUniversalAccessFromFileURLs(false); 14 window.testRunner.setAllowUniversalAccessFromFileURLs(false);
15 } 15 }
16 16
17 WebInspector.settings.showShadowDOM.set(true);
18
19 InspectorTest.expandElementsTree(function() { 17 InspectorTest.expandElementsTree(function() {
20 var contentNode = InspectorTest.expandedNodeWithId("tpl").templateConten t(); 18 var contentNode = InspectorTest.expandedNodeWithId("tpl").templateConten t();
21 WebInspector.panels.elements.selectDOMNode(contentNode, true); 19 WebInspector.panels.elements.selectDOMNode(contentNode, true);
22 InspectorTest.evaluateInConsole("$0", callback); 20 InspectorTest.evaluateInConsole("$0", callback);
23 }); 21 });
24 22
25 function callback(result) 23 function callback(result)
26 { 24 {
27 InspectorTest.addResult("SUCCESS"); 25 InspectorTest.addResult("SUCCESS");
28 InspectorTest.completeTest(); 26 InspectorTest.completeTest();
29 } 27 }
30 } 28 }
31 </script> 29 </script>
32 </head> 30 </head>
33 31
34 <body onload="runTest()"> 32 <body onload="runTest()">
35 33
36 <p id="description">This test verifies that template's content DocumentFragment is accessible from DevTools.</p> 34 <p id="description">This test verifies that template's content DocumentFragment is accessible from DevTools.</p>
37 35
38 <template id="tpl"> 36 <template id="tpl">
39 <div>Hello!</div> 37 <div>Hello!</div>
40 </div> 38 </template>
41 39
42 </body> 40 </body>
43 </html> 41 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698