function test()
{
- WebInspector.showPanel("elements");
+ WebInspector.inspectorView.showPanel("elements");
InspectorTest.selectNodeAndWaitForStyles("inspected", step1);
- var treeOutline = WebInspector.panels.elements.treeOutline;
+ var treeOutline = InspectorTest.firstElementsTreeOutline();
var seenRebuildUpdate;
var seenAttrModified;
var modifiedAttrNodes = [];
function step1()
{
InspectorTest.addSniffer(WebInspector.StylesSidebarPane.prototype, "_rebuildUpdate", rebuildUpdate);
- WebInspector.domAgent.addEventListener(WebInspector.DOMAgent.Events.AttrModified, attributeChanged, this);
+ WebInspector.domModel.addEventListener(WebInspector.DOMModel.Events.AttrModified, attributeChanged, this);
// Click "Add new rule".
document.getElementById("add-style-button-test-id").click();
InspectorTest.evaluateInPage("addStyleClass()", step2);