Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / timeline / timeline-node-reference.html
index c3d4890..7cd8d67 100644 (file)
@@ -20,6 +20,9 @@ function performActions()
 
 function test()
 {
+    // Force panel load.
+    WebInspector.panel("elements");
+
     InspectorTest.evaluateInPage("var unused = document.body.offsetWidth; testRunner.display();", function() {
          InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecorded);
     });
@@ -43,7 +46,7 @@ function test()
     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");
     }
 
@@ -55,7 +58,7 @@ function test()
         // 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();
     }