| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style> | 3 <style> |
| 4 | 4 |
| 5 #inspected { | 5 #inspected { |
| 6 background-color: green; | 6 background-color: green; |
| 7 font-family: Times; | 7 font-family: Times; |
| 8 } | 8 } |
| 9 | 9 |
| 10 #inspected { | 10 #inspected { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 | 23 |
| 24 function test() | 24 function test() |
| 25 { | 25 { |
| 26 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); | 26 InspectorTest.selectNodeAndWaitForStyles("inspected", step1); |
| 27 | 27 |
| 28 function step1() | 28 function step1() |
| 29 { | 29 { |
| 30 InspectorTest.addResult("==== All styles (should be no computed) ===="); | 30 InspectorTest.addResult("==== All styles (should be no computed) ===="); |
| 31 InspectorTest.dumpSelectedElementStyles(false, false); | 31 InspectorTest.dumpSelectedElementStyles(false, false); |
| 32 InspectorTest.addSniffer(WebInspector.ComputedStyleSidebarPane.prototype
, "onContentReady", step2); | 32 InspectorTest.addSniffer(WebInspector.ComputedStyleSidebarPane.prototype
, "onContentReady", step2); |
| 33 WebInspector.panels.elements.sidebarPanes.computedStyle.expand(); | 33 WebInspector.inspectorView.panel("elements").sidebarPanes.computedStyle.
expand(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 function step2() | 36 function step2() |
| 37 { | 37 { |
| 38 InspectorTest.addResult("==== All styles (computed should be there) ====
"); | 38 InspectorTest.addResult("==== All styles (computed should be there) ====
"); |
| 39 InspectorTest.dumpSelectedElementStyles(false, false); | 39 InspectorTest.dumpSelectedElementStyles(false, false); |
| 40 InspectorTest.completeTest(); | 40 InspectorTest.completeTest(); |
| 41 } | 41 } |
| 42 } | 42 } |
| 43 </script> | 43 </script> |
| 44 </head> | 44 </head> |
| 45 | 45 |
| 46 <body onload="runTest()"> | 46 <body onload="runTest()"> |
| 47 <p> | 47 <p> |
| 48 Tests that computed styles expand and allow tracing to style rules. | 48 Tests that computed styles expand and allow tracing to style rules. |
| 49 </p> | 49 </p> |
| 50 | 50 |
| 51 <div id="inspected"> | 51 <div id="inspected"> |
| 52 </div> | 52 </div> |
| 53 | 53 |
| 54 </body> | 54 </body> |
| 55 </html> | 55 </html> |
| OLD | NEW |