Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / inspector / elements / styles / styles-new-API.html
index 40a9b23..3e2e393 100644 (file)
@@ -10,7 +10,6 @@
 
 function test()
 {
-    WebInspector.inspectorView.showPanel("elements");
 
     var bodyId;
     InspectorTest.runTestSuite([
@@ -89,7 +88,7 @@ function test()
                 bodyId = node.id;
                 CSSAgent.getComputedStyleForNode(node.id, computedCallback);
                 CSSAgent.getInlineStylesForNode(node.id, inlineCallback);
-                CSSAgent.getMatchedStylesForNode(node.id, true, true, matchedCallback);
+                CSSAgent.getMatchedStylesForNode(node.id, false, false, matchedCallback);
             }
             InspectorTest.selectNodeWithId("mainBody", nodeCallback);
         },
@@ -97,7 +96,7 @@ function test()
         function test_forcedState(next)
         {
             CSSAgent.forcePseudoState(bodyId, ["hover"]);
-            CSSAgent.getMatchedStylesForNode(bodyId, true, true, matchedCallback);
+            CSSAgent.getMatchedStylesForNode(bodyId, false, false, matchedCallback);
 
             function matchedCallback(error, matchedRules)
             {
@@ -254,7 +253,7 @@ function test()
 
             function didPatchStyleSheet(styleSheetId)
             {
-                CSSAgent.getMatchedStylesForNode(bodyId, false, false, onMatchedStylesForNode);
+                CSSAgent.getMatchedStylesForNode(bodyId, true, true, onMatchedStylesForNode);
             }
 
             function patchStyleSheet(styleSheetId)
@@ -295,7 +294,7 @@ function test()
                     InspectorTest.addResult("error: " + error);
                     return;
                 }
-                CSSAgent.getMatchedStylesForNode(bodyId, false, false, didGetStyles);
+                CSSAgent.getMatchedStylesForNode(bodyId, true, true, didGetStyles);
             }
 
             function ruleAdded(error, rule)
@@ -319,7 +318,13 @@ function test()
                     InspectorTest.completeTest();
                     return;
                 }
-                CSSAgent.addRule(styleSheetId, "body", ruleAdded);
+                var range = {
+                    startLine: 0,
+                    startColumn: 0,
+                    endLine: 0,
+                    endColumn: 0
+                };
+                CSSAgent.addRule(styleSheetId, "body {}", range, ruleAdded);
             }
 
             var frameId = WebInspector.resourceTreeModel.mainFrame.id;
@@ -432,7 +437,7 @@ function test()
 
             function nodeCallback(node)
             {
-                CSSAgent.getMatchedStylesForNode(node.id, false, false, stylesCallback);
+                CSSAgent.getMatchedStylesForNode(node.id, true, true, stylesCallback);
             }
             InspectorTest.nodeWithId("toggle", nodeCallback);
         },