Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / elements / styles / paste-property.html
index 4f18f7a..6b03440 100644 (file)
@@ -6,7 +6,6 @@
 
 function test()
 {
-    WebInspector.inspectorView.showPanel("elements");
     InspectorTest.selectNodeAndWaitForStyles("inspected", pasteFirstProperty);
 
     function pasteFirstProperty()
@@ -53,13 +52,12 @@ function test()
 
         document.execCommand("SelectAll");
         document.execCommand("Copy");
+        InspectorTest.waitForStyleApplied(reloadStyles.bind(this, callback));
         document.execCommand("Paste");
-        InspectorTest.runAfterPendingDispatches(reloadStyles.bind(this, callback));
     }
 
     function reloadStyles(callback) {
-        InspectorTest.selectNodeWithId("other");
-        InspectorTest.runAfterPendingDispatches(otherCallback);
+        InspectorTest.selectNodeAndWaitForStyles("other", otherCallback);
 
         function otherCallback()
         {