Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / inspector / elements / styles-3 / selector-source-data.html
blobb860b330b95f411dfbd68ff4d04e933cbf90b01a
1 <html>
2 <head>
4 <style>
5 /* c1 */
6 html
7 #inspected.bar /* c2 */,
8 /* c3 */ b
9 /* c4 */ {
10 text-decoration: none;
12 </style>
14 <script src="../../../http/tests/inspector/inspector-test.js"></script>
15 <script src="../../../http/tests/inspector/elements-test.js"></script>
16 <script>
18 function test()
20 InspectorTest.nodeWithId("inspected", nodeFound);
22 function nodeFound(node)
24 InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, stylesLoaded);
27 function stylesLoaded(error, inlineStyle, attributeStyle, rules)
29 if (error) {
30 InspectorTest.addResult("Failed to get styles: " + error);
31 return;
33 InspectorTest.dumpRuleMatchesArray(rules);
34 InspectorTest.completeTest();
37 </script>
38 </head>
40 <body onload="runTest()">
41 <p>
42 Tests that WebInspector.CSSStyleSheet methods work as expected.
43 </p>
44 <h1 id="inspected" class="bar">Inspect Me</h1>
45 </body>
46 </html>