| Index: third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color.html
|
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color.html b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..f9740de4e6e7b108b7ea0b89143020e61e41d5c0
|
| --- /dev/null
|
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/default-background-color.html
|
| @@ -0,0 +1,27 @@
|
| +<html>
|
| +<head>
|
| +
|
| +<script src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script>
|
| +
|
| +<script>
|
| +function test()
|
| +{
|
| + InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.dumpAsTextWithPixelResults();"} );
|
| +
|
| + InspectorTest.sendCommand("Emulation.setDefaultBackgroundColor", { "color": { "r": 0x12, "g": 0x34, "b": 0x56, "a": 0xff } }, backgroundColorSet);
|
| +
|
| + function backgroundColorSet(messageObject) {
|
| + if (!!messageObject.result.exceptionDetails)
|
| + InspectorTest.log("FAIL: unexpected exception: " + JSON.stringify(messageObject, null, 2));
|
| + InspectorTest.completeTest();
|
| + }
|
| +}
|
| +</script>
|
| +
|
| +</head>
|
| +<body onload="runTest()">
|
| +<p>
|
| +Tests that Emulation.setDefaultBackgroundColor changes the background color of a page that does not specify one.
|
| +</p>
|
| +</body>
|
| +</html>
|
|
|