OLD | NEW |
(Empty) | |
| 1 <html> |
| 2 <head> |
| 3 <style> |
| 4 |
| 5 #inspected { |
| 6 display: flex; |
| 7 color: blue; |
| 8 } |
| 9 |
| 10 #other { |
| 11 display: inline; |
| 12 } |
| 13 |
| 14 div { |
| 15 display: block; |
| 16 color: black; |
| 17 } |
| 18 |
| 19 </style> |
| 20 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 21 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 22 <script> |
| 23 |
| 24 function test() |
| 25 { |
| 26 InspectorTest.selectNodeAndWaitForStylesWithComputed("inspected", step1); |
| 27 |
| 28 function step1() |
| 29 { |
| 30 var treeElement = InspectorTest.findComputedPropertyWithName("display"); |
| 31 treeElement.expand(); |
| 32 InspectorTest.addResult("\n#inspected computed styles: "); |
| 33 InspectorTest.dumpComputedStyle(true); |
| 34 InspectorTest.selectNodeAndWaitForStylesWithComputed("other", step2); |
| 35 } |
| 36 |
| 37 function step2() |
| 38 { |
| 39 InspectorTest.addResult("\n#other computed styles: "); |
| 40 InspectorTest.dumpComputedStyle(true); |
| 41 InspectorTest.completeTest(); |
| 42 } |
| 43 } |
| 44 |
| 45 </script> |
| 46 </head> |
| 47 |
| 48 <body onload="runTest()"> |
| 49 <p> |
| 50 Verifies that Computed Style preserves property expansion on re-rendering. |
| 51 </p> |
| 52 |
| 53 <div id="inspected">Inspected</div> |
| 54 <div id="other">Other</div> |
| 55 |
| 56 </body> |
| 57 </html> |
OLD | NEW |