Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / tracing / timeline-node-reference.html
index 40e402c..ecb9181 100644 (file)
@@ -1,6 +1,7 @@
 <html>
 <head>
 <script src="../../http/tests/inspector/inspector-test.js"></script>
+<script src="../../http/tests/inspector/elements-test.js"></script>
 <script src="../../http/tests/inspector/timeline-test.js"></script>
 <style>
 .relayout-boundary {
@@ -20,16 +21,13 @@ function performActions()
 
 function test()
 {
-    // Force panel load.
-    WebInspector.inspectorView.panel("elements");
-
     InspectorTest.evaluateInPage("var unused = document.body.offsetWidth;", function() {
          InspectorTest.evaluateWithTimeline("performActions()", onTimelineRecorded);
     });
 
     function clickValueLink(record, row)
     {
-        var panel = WebInspector.inspectorView.panel("timeline");
+        var panel = WebInspector.panels.timeline;
         var helper = panel._uiUtils.generateDetailsContent(record, panel._model, new WebInspector.Linkifier(), onDetailsContentReady);
 
         function onDetailsContentReady(element)
@@ -53,8 +51,6 @@ function test()
 
     function onSelectedNodeChanged()
     {
-        // avoid using WebInspector.inspectorView.panel("elements"), as we get first event from constructor,
-        // and this call would cause another instance to get constructed.
         var node = WebInspector.panels.elements.selectedDOMNode();
         // We may first get an old selected node while switching to the Elements panel.
         if (node.nodeName() === "BODY")