| OLD | NEW |
| (Empty) |
| 1 <html> | |
| 2 <head> | |
| 3 | |
| 4 <style> | |
| 5 /* c1 */ | |
| 6 html | |
| 7 #inspected.bar /* c2 */, | |
| 8 /* c3 */ b | |
| 9 /* c4 */ { | |
| 10 text-decoration: none; | |
| 11 } | |
| 12 </style> | |
| 13 | |
| 14 <script src="../../../http/tests/inspector/inspector-test.js"></script> | |
| 15 <script src="../../../http/tests/inspector/elements-test.js"></script> | |
| 16 <script> | |
| 17 | |
| 18 function test() | |
| 19 { | |
| 20 InspectorTest.nodeWithId("inspected", nodeFound); | |
| 21 | |
| 22 function nodeFound(node) | |
| 23 { | |
| 24 InspectorTest.CSSAgent.getMatchedStylesForNode(node.id, true, true, style
sLoaded); | |
| 25 } | |
| 26 | |
| 27 function stylesLoaded(error, rules) | |
| 28 { | |
| 29 if (error) { | |
| 30 InspectorTest.addResult("Failed to get styles: " + error); | |
| 31 return; | |
| 32 } | |
| 33 InspectorTest.dumpRuleMatchesArray(rules); | |
| 34 InspectorTest.completeTest(); | |
| 35 } | |
| 36 } | |
| 37 </script> | |
| 38 </head> | |
| 39 | |
| 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> | |
| OLD | NEW |