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)
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);
}