<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 {
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)
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")