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 11 matching lines...) Expand all Loading... |
22 <script> | 22 <script> |
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.computedStyleWidget().doUpdate(step2); | 32 InspectorTest.computedStyleWidget().doUpdate().then(step2); |
33 } | 33 } |
34 | 34 |
35 function step2() | 35 function step2() |
36 { | 36 { |
37 InspectorTest.addResult("==== All styles (computed should be there) ====
"); | 37 InspectorTest.addResult("==== All styles (computed should be there) ====
"); |
38 InspectorTest.dumpSelectedElementStyles(false, false); | 38 InspectorTest.dumpSelectedElementStyles(false, false); |
39 InspectorTest.completeTest(); | 39 InspectorTest.completeTest(); |
40 } | 40 } |
41 } | 41 } |
42 </script> | 42 </script> |
43 </head> | 43 </head> |
44 | 44 |
45 <body onload="runTest()"> | 45 <body onload="runTest()"> |
46 <p> | 46 <p> |
47 Tests that computed styles expand and allow tracing to style rules. | 47 Tests that computed styles expand and allow tracing to style rules. |
48 </p> | 48 </p> |
49 | 49 |
50 <div id="inspected"> | 50 <div id="inspected"> |
51 </div> | 51 </div> |
52 | 52 |
53 </body> | 53 </body> |
54 </html> | 54 </html> |
OLD | NEW |