blob: 10e6ac7a0525a82f40ecc887003ac7279bc1b4f9 [file] [log] [blame]
<html>
<head>
<script src="inspector-test.js"></script>
<script src="elements-test.js"></script>
<script>
function test()
{
WebInspector.showPanel("elements").treeOutline.
addEventListener(WebInspector.ElementsTreeOutline.Events.SelectedNodeChanged, selectedNodeChanged, this);
function selectedNodeChanged(event)
{
var node = event.data;
if (!node)
return;
if (node.getAttribute("id") == "div") {
InspectorTest.addResult(node.appropriateSelectorFor());
InspectorTest.completeTest();
}
}
InspectorTest.evaluateInConsole("inspect(iframeDivElement)");
}
</script>
</head>
<body>
<p>
Tests that inspect element action works for iframe children (https://bugs.webkit.org/show_bug.cgi?id=76808).
</p>
<iframe src="resources/inspect-element-iframe.html" onload="runTest()"></iframe>
</body>
</html>