Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / http / tests / inspector / inspect-element.html
1 <html>
2 <head>
3 <script src="inspector-test.js"></script>
4 <script src="elements-test.js"></script>
5 <script>
6
7 function test()
8 {
9     WebInspector.showPanel("elements").treeOutline.
10         addEventListener(WebInspector.ElementsTreeOutline.Events.SelectedNodeChanged, selectedNodeChanged, this);
11     function selectedNodeChanged(event)
12     {
13         var node = event.data;
14         if (!node)
15             return;
16         if (node.getAttribute("id") == "div") {
17             InspectorTest.addResult(WebInspector.DOMPresentationUtils.fullQualifiedSelector(node));
18             InspectorTest.completeTest();
19         }
20     }
21     InspectorTest.evaluateInConsole("inspect(iframeDivElement)");
22 }
23
24 </script>
25 </head>
26
27 <body>
28 <p>
29 Tests that inspect element action works for iframe children (https://bugs.webkit.org/show_bug.cgi?id=76808).
30 </p>
31
32 <iframe src="resources/inspect-element-iframe.html" onload="runTest()"></iframe>
33
34 </body>
35 </html>