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

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

Issue 218703002: DevTools: [wip] move Elements panel off WebInspector.domModel and single tree outline. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Review comment addressed (and much more) Created 6 years, 8 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> 5 <script>
6 6
7 function test() 7 function test()
8 { 8 {
9 WebInspector.inspectorView.showPanel("elements").treeOutline. 9 InspectorTest.firstElementsTreeOutline().addEventListener(WebInspector.Eleme ntsTreeOutline.Events.SelectedNodeChanged, selectedNodeChanged, this);
10 addEventListener(WebInspector.ElementsTreeOutline.Events.SelectedNodeCha nged, selectedNodeChanged, this);
11 function selectedNodeChanged(event) 10 function selectedNodeChanged(event)
12 { 11 {
13 var node = event.data; 12 var node = event.data;
14 if (!node) 13 if (!node)
15 return; 14 return;
16 if (node.getAttribute("id") == "div") { 15 if (node.getAttribute("id") == "div") {
17 InspectorTest.addResult(WebInspector.DOMPresentationUtils.fullQualif iedSelector(node)); 16 InspectorTest.addResult(WebInspector.DOMPresentationUtils.fullQualif iedSelector(node));
18 InspectorTest.completeTest(); 17 InspectorTest.completeTest();
19 } 18 }
20 } 19 }
21 InspectorTest.evaluateInConsole("inspect(iframeDivElement)"); 20 InspectorTest.evaluateInConsole("inspect(iframeDivElement)");
22 } 21 }
23 22
24 </script> 23 </script>
25 </head> 24 </head>
26 25
27 <body> 26 <body>
28 <p> 27 <p>
29 Tests that inspect element action works for iframe children (https://bugs.webkit .org/show_bug.cgi?id=76808). 28 Tests that inspect element action works for iframe children (https://bugs.webkit .org/show_bug.cgi?id=76808).
30 </p> 29 </p>
31 30
32 <iframe src="resources/inspect-element-iframe.html" onload="runTest()"></iframe> 31 <iframe src="resources/inspect-element-iframe.html" onload="runTest()"></iframe>
33 32
34 </body> 33 </body>
35 </html> 34 </html>
OLDNEW
« no previous file with comments | « LayoutTests/http/tests/inspector/elements-test.js ('k') | LayoutTests/inspector/console/shadow-element.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698