function test()
{
- WebInspector.inspectorView.showPanel("elements");
var bodyId;
InspectorTest.runTestSuite([
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);
},
function test_forcedState(next)
{
CSSAgent.forcePseudoState(bodyId, ["hover"]);
- CSSAgent.getMatchedStylesForNode(bodyId, true, true, matchedCallback);
+ CSSAgent.getMatchedStylesForNode(bodyId, false, false, matchedCallback);
function matchedCallback(error, matchedRules)
{
function didPatchStyleSheet(styleSheetId)
{
- CSSAgent.getMatchedStylesForNode(bodyId, false, false, onMatchedStylesForNode);
+ CSSAgent.getMatchedStylesForNode(bodyId, true, true, onMatchedStylesForNode);
}
function patchStyleSheet(styleSheetId)
InspectorTest.addResult("error: " + error);
return;
}
- CSSAgent.getMatchedStylesForNode(bodyId, false, false, didGetStyles);
+ CSSAgent.getMatchedStylesForNode(bodyId, true, true, didGetStyles);
}
function ruleAdded(error, rule)
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;
function nodeCallback(node)
{
- CSSAgent.getMatchedStylesForNode(node.id, false, false, stylesCallback);
+ CSSAgent.getMatchedStylesForNode(node.id, true, true, stylesCallback);
}
InspectorTest.nodeWithId("toggle", nodeCallback);
},