Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / initial-modules-load.html
index ce6bf58..d26ace8 100644 (file)
@@ -13,20 +13,17 @@ function test()
 
         function testCreateElementsPanel(next)
         {
-            WebInspector.inspectorView.panel("elements");
-            InspectorTest.dumpLoadedModules(next);
+            WebInspector.inspectorView.panel("elements").then(InspectorTest.dumpLoadedModules.bind(InspectorTest, next));
         },
 
         function testCreateNetworkPanel(next)
         {
-            WebInspector.inspectorView.panel("network");
-            InspectorTest.dumpLoadedModules(next);
+            WebInspector.inspectorView.panel("network").then(InspectorTest.dumpLoadedModules.bind(InspectorTest, next));
         },
 
         function testShowSourcesPanel(next)
         {
-            WebInspector.inspectorView.showPanel("sources");
-            InspectorTest.dumpLoadedModules(next);
+            WebInspector.inspectorView.panel("sources").then(InspectorTest.dumpLoadedModules.bind(InspectorTest, next));
         },
 
         function testOpenUISourceCode(next)
@@ -38,7 +35,7 @@ function test()
                     return true;
                 }
             });
-            var uiLocation = new WebInspector.UILocation(WebInspector.workspace.uiSourceCodeForOriginURL(resource.url), 2, 1);
+            var uiLocation = WebInspector.workspace.uiSourceCodeForOriginURL(resource.url).uiLocation(2, 1);
             WebInspector.Revealer.reveal(uiLocation);
             InspectorTest.dumpLoadedModules(next);
         }