| 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) |
| 21 InspectorTest.log("FAIL: unexpected exception: " + JSON.stringify(mess
ageObject, null, 2)); | 21 InspectorTest.log("FAIL: unexpected exception: " + JSON.stringify(mess
ageObject, null, 2)); |
| 22 | 22 |
| 23 // Complete the test without closing the inspector, so that the override s
tays active for the picture. | 23 // Complete the test without closing the inspector, so that the override s
tays active for the picture. |
| 24 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.
notifyDone();"} ); | 24 InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.
notifyDone();"} ); |
| 25 } | 25 } |
| 26 } | 26 } |
| 27 </script> | 27 </script> |
| 28 | 28 |
| 29 </head> | 29 </head> |
| 30 <body onload="runTest()"> | 30 <body onload="runTest()"> |
| 31 <p> | 31 <p> |
| 32 Tests that Emulation.setDefaultBackgroundColorOverride changes the background co
lor of a page that does not specify one. | 32 Tests that Emulation.setDefaultBackgroundColorOverride changes the background co
lor of a page that does not specify one. |
| 33 </p> | 33 </p> |
| 34 </body> | 34 </body> |
| 35 </html> | 35 </html> |
| OLD | NEW |