Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / elements / styles / add-new-rule-invalid-selector.html
index 9b53d38..46b128e 100644 (file)
@@ -9,18 +9,13 @@ function test()
     InspectorTest.runTestSuite([
         function init(next)
         {
-            WebInspector.showPanel("elements");
+            WebInspector.inspectorView.showPanel("elements");
             InspectorTest.selectNodeAndWaitForStyles("inspected", next);
         },
 
         function keyframesRuleSelector(next)
         {
-            // Click "Add new rule".
-            document.getElementById("add-style-button-test-id").click();
-            var section = WebInspector.panels.elements.sidebarPanes.styles.sections[0][2];
-            section._selectorElement.textContent = "@-webkit-keyframes shake";
-            section._selectorElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
-            InspectorTest.runAfterPendingDispatches(callback);
+            InspectorTest.addNewRule("@-webkit-keyframes shake", callback);
 
             function callback()
             {