OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../http/tests/inspector/inspector-test.js"></script> | 3 <script src="../../http/tests/inspector/inspector-test.js"></script> |
4 <script src="../../http/tests/inspector/elements-test.js"></script> | 4 <script src="../../http/tests/inspector/elements-test.js"></script> |
5 | 5 |
6 <script> | 6 <script> |
7 | 7 |
8 function injectStyleSheet() | 8 function injectStyleSheet() |
9 { | 9 { |
10 var styleSheet = "#container { margin: 8px }"; | 10 var styleSheet = "#container { margin: 8px }"; |
11 if (window.testRunner) | 11 if (window.testRunner) |
12 window.testRunner.addUserStyleSheet(styleSheet, true); | 12 window.testRunner.injectStyleSheet(styleSheet, true); |
13 } | 13 } |
14 | 14 |
15 function test() | 15 function test() |
16 { | 16 { |
17 InspectorTest.evaluateInPage("injectStyleSheet()", step1); | 17 InspectorTest.evaluateInPage("injectStyleSheet()", step1); |
18 function step1() | 18 function step1() |
19 { | 19 { |
20 InspectorTest.selectNodeAndWaitForStyles("container", step2); | 20 InspectorTest.selectNodeAndWaitForStyles("container", step2); |
21 } | 21 } |
22 | 22 |
(...skipping 25 matching lines...) Expand all Loading... |
48 | 48 |
49 <body onload="runTest()" id="body-id"> | 49 <body onload="runTest()" id="body-id"> |
50 <p> | 50 <p> |
51 Tests that disabling shorthand removes the "overriden" mark from the UA shorthan
d it overrides. | 51 Tests that disabling shorthand removes the "overriden" mark from the UA shorthan
d it overrides. |
52 </p> | 52 </p> |
53 | 53 |
54 <div id="container" style="margin: 10px"></div> | 54 <div id="container" style="margin: 10px"></div> |
55 | 55 |
56 </body> | 56 </body> |
57 </html> | 57 </html> |
OLD | NEW |