| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <style type="text/css"> | 3 <link rel="import" href="resources/imported-stylesheet.html"/> |
| 4 #main { | |
| 5 height: 100px; | |
| 6 background: #000; | |
| 7 background: #bada55; | |
| 8 } | |
| 9 </style> | |
| 10 | |
| 11 <script src="../../../http/tests/inspector/inspector-test.js"></script> | 4 <script src="../../../http/tests/inspector/inspector-test.js"></script> |
| 12 <script src="../../../http/tests/inspector/elements-test.js"></script> | 5 <script src="../../../http/tests/inspector/elements-test.js"></script> |
| 13 <script> | 6 <script> |
| 14 | 7 |
| 15 function test() | 8 function test() |
| 16 { | 9 { |
| 17 InspectorTest.selectNodeAndWaitForStyles("main", step1); | 10 InspectorTest.selectNodeAndWaitForStyles("square", step1); |
| 18 | 11 |
| 19 function step1() | 12 function step1() |
| 20 { | 13 { |
| 21 InspectorTest.dumpSelectedElementStyles(true, false, true); | 14 InspectorTest.dumpSelectedElementStyles(true, false, true); |
| 22 InspectorTest.completeTest(); | 15 InspectorTest.completeTest(); |
| 23 } | 16 } |
| 24 } | 17 } |
| 25 | |
| 26 </script> | 18 </script> |
| 27 </head> | 19 </head> |
| 28 | 20 |
| 29 <body onload="runTest()"> | 21 <body onload="runTest()"> |
| 30 <p> | 22 <p>Tests that rules from imported stylesheets are correctly shown in inspector.<
/p> |
| 31 Tests that overriding shorthands within rule are visible. | 23 <div id="square" class="square"></div> |
| 32 </p> | |
| 33 | |
| 34 <div id="main"></div> | |
| 35 | |
| 36 </body> | 24 </body> |
| 37 </html> | 25 </html> |
| OLD | NEW |