| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 | 3 |
| 4 <style> | 4 <style> |
| 5 html { | 5 html { |
| 6 margin: 0; | 6 margin: 0; |
| 7 } | 7 } |
| 8 </style> | 8 </style> |
| 9 | 9 |
| 10 <script src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></s
cript> | 10 <script src="../../http/tests/inspector-protocol/resources/inspector-protocol-te
st.js"></script> |
| 11 | 11 |
| 12 <script> | 12 <script> |
| 13 function test() | 13 function test() |
| 14 { | 14 { |
| 15 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.du
mpAsTextWithPixelResults();"} ); | 15 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.du
mpAsTextWithPixelResults();"} ); |
| 16 | 16 |
| 17 InspectorTest.sendCommand("Emulation.setDefaultBackgroundColorOverride", { "
color": { "r": 0x12, "g": 0x34, "b": 0x56, "a": 1.0 } }, backgroundColorSet); | 17 InspectorTest.sendCommand("Emulation.setDefaultBackgroundColorOverride", { "
color": { "r": 0x12, "g": 0x34, "b": 0x56, "a": 1.0 } }, backgroundColorSet); |
| 18 | 18 |
| 19 function backgroundColorSet(messageObject) { | 19 function backgroundColorSet(messageObject) { |
| 20 if (!!messageObject.result.exceptionDetails) | 20 if (!!messageObject.result.exceptionDetails) |
| (...skipping 11 matching lines...) Expand all Loading... |
| 32 } | 32 } |
| 33 </script> | 33 </script> |
| 34 | 34 |
| 35 </head> | 35 </head> |
| 36 <body onload="runTest()"> | 36 <body onload="runTest()"> |
| 37 <p> | 37 <p> |
| 38 Tests that resetting Emulation.setDefaultBackgroundColorOverride clears the back
ground color override. | 38 Tests that resetting Emulation.setDefaultBackgroundColorOverride clears the back
ground color override. |
| 39 </p> | 39 </p> |
| 40 </body> | 40 </body> |
| 41 </html> | 41 </html> |
| OLD | NEW |