7 #inspected.bar /* c2 */,
10 text-decoration: none;
14 <script src="../../../http/tests/inspector/inspector-test.js"></script>
15 <script src="../../../http/tests/inspector/elements-test.js"></script>
20 WebInspector.showPanel("elements");
21 InspectorTest.nodeWithId("inspected", nodeFound);
23 function nodeFound(node)
25 CSSAgent.getMatchedStylesForNode(node.id, false, false, stylesLoaded);
28 function stylesLoaded(error, rules)
31 InspectorTest.addResult("Failed to get styles: " + error);
34 InspectorTest.dumpRuleMatchesArray(rules);
35 InspectorTest.completeTest();
41 <body onload="runTest()">
43 Tests that WebInspector.CSSStyleSheet methods work as expected.
45 <h1 id="inspected" class="bar">Inspect Me</h1>