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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/inspect-element.html

Issue 2449963004: Reland of DevTools: properly restore selected DOMNode in Elements panel. (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/elements-panel-restore-selection-when-node-comes-later.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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="console-test.js"></script> 4 <script src="console-test.js"></script>
5 <script src="elements-test.js"></script> 5 <script src="elements-test.js"></script>
6 <script> 6 <script>
7 7
8 function test() 8 function test()
9 { 9 {
10 InspectorTest.firstElementsTreeOutline().addEventListener(WebInspector.Eleme ntsTreeOutline.Events.SelectedNodeChanged, selectedNodeChanged, this); 10 InspectorTest.firstElementsTreeOutline().addEventListener(WebInspector.Eleme ntsTreeOutline.Events.SelectedNodeChanged, selectedNodeChanged, this);
11 function selectedNodeChanged(event) 11 function selectedNodeChanged(event)
12 { 12 {
13 var node = event.data; 13 var node = event.data.node;
14 if (!node) 14 if (!node)
15 return; 15 return;
16 if (node.getAttribute("id") == "div") { 16 if (node.getAttribute("id") == "div") {
17 InspectorTest.addResult(WebInspector.DOMPresentationUtils.fullQualif iedSelector(node)); 17 InspectorTest.addResult(WebInspector.DOMPresentationUtils.fullQualif iedSelector(node));
18 InspectorTest.completeTest(); 18 InspectorTest.completeTest();
19 } 19 }
20 } 20 }
21 InspectorTest.evaluateInConsole("inspect(iframeDivElement)"); 21 InspectorTest.evaluateInConsole("inspect(iframeDivElement)");
22 } 22 }
23 23
24 </script> 24 </script>
25 </head> 25 </head>
26 26
27 <body> 27 <body>
28 <p> 28 <p>
29 Tests that inspect element action works for iframe children (https://bugs.webkit .org/show_bug.cgi?id=76808). 29 Tests that inspect element action works for iframe children (https://bugs.webkit .org/show_bug.cgi?id=76808).
30 </p> 30 </p>
31 31
32 <iframe src="resources/inspect-element-iframe.html" onload="runTest()"></iframe> 32 <iframe src="resources/inspect-element-iframe.html" onload="runTest()"></iframe>
33 33
34 </body> 34 </body>
35 </html> 35 </html>
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/elements/elements-panel-restore-selection-when-node-comes-later.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698