Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / elements / styles / color-aware-property-value-edit.html
index f0316f2..2e357ee 100644 (file)
@@ -6,8 +6,6 @@
 
 function test()
 {
-    WebInspector.inspectorView.showPanel("elements");
-
     InspectorTest.runTestSuite([
         function init(next)
         {
@@ -64,30 +62,14 @@ function test()
             treeElement.startEditing();
             treeElement.nameElement.textContent = "border-color";
             treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("Enter"));
-            InspectorTest.runAfterPendingDispatches(callbackName);
-
-            function callbackName()
-            {
-                treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("U+001B"));
-                treeElement.valueElement.textContent = "hsl(120, 100%, 25%)";
-                treeElement.kickFreeFlowStyleEditForTest();
-                InspectorTest.runAfterPendingDispatches(kicked);
-            }
+            treeElement.valueElement.textContent = "hsl(120, 100%, 25%)";
+            treeElement.kickFreeFlowStyleEditForTest();
+            InspectorTest.waitForStyleApplied(kicked);
 
             function kicked()
             {
                 treeElement.valueElement.dispatchEvent(InspectorTest.createKeyEvent("U+0009", false, false, true));
-                InspectorTest.runAfterPendingDispatches(callbackBack);
-            }
-
-            function callbackBack()
-            {
                 treeElement.nameElement.dispatchEvent(InspectorTest.createKeyEvent("U+0009"));
-                InspectorTest.runAfterPendingDispatches(callbackForward);
-            }
-
-            function callbackForward()
-            {
                 InspectorTest.addResult(treeElement.valueElement.textContent);
                 next();
             }
@@ -105,7 +87,7 @@ function test()
     function setFormat(newFormat)
     {
         format = newFormat;
-        WebInspector.inspectorView.panel("elements").sidebarPanes.styles._colorFormatSettingChanged();
+        WebInspector.panels.elements.sidebarPanes.styles._colorFormatSettingChanged();
     }
 
     function startEditingAndDumpValue(format, propertyName, next)