Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / elements / styles / style-update-during-selector-edit.html
index 50e4d98..6947b61 100644 (file)
@@ -11,9 +11,9 @@ function addStyleClass()
 
 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 = [];
@@ -33,7 +33,7 @@ function test()
     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);