function test()
{
+ // Force panel load.
+ WebInspector.panel("elements");
+
InspectorTest.evaluateInPage("var unused = document.body.offsetWidth; testRunner.display();", function() {
InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecorded);
});
function onTimelineRecorded(records)
{
var layoutRecord = InspectorTest.findPresentationRecord("Layout");
- WebInspector.notifications.addEventListener(WebInspector.ElementsTreeOutline.Events.SelectedNodeChanged, onSelectedNodeChanged);
+ WebInspector.notifications.addEventListener(WebInspector.NotificationService.Events.SelectedNodeChanged, onSelectedNodeChanged);
clickValueLink(layoutRecord, "Layout root");
}
// We may first get an old selected node while switching to the Elements panel.
if (node.nodeName() === "BODY")
return;
- WebInspector.notifications.removeEventListener(WebInspector.ElementsTreeOutline.Events.SelectedNodeChanged, onSelectedNodeChanged);
+ WebInspector.notifications.removeEventListener(WebInspector.NotificationService.Events.SelectedNodeChanged, onSelectedNodeChanged);
InspectorTest.addResult("Layout root node id: " + node.getAttribute("id"));
InspectorTest.completeTest();
}