| Index: third_party/WebKit/LayoutTests/inspector-protocol/emulation/visual-transform-near.html | 
| diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/emulation/visual-transform-near.html b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/visual-transform-near.html | 
| new file mode 100644 | 
| index 0000000000000000000000000000000000000000..9ed504d2582e922e7b296cc0d69c81fc46bdbbb7 | 
| --- /dev/null | 
| +++ b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/visual-transform-near.html | 
| @@ -0,0 +1,64 @@ | 
| +<html> | 
| +<head> | 
| + | 
| +<script src="../../http/tests/inspector-protocol/inspector-protocol-test.js"></script> | 
| + | 
| +<style> | 
| +html { | 
| +    overflow: hidden; | 
| +} | 
| + | 
| +body { | 
| +    margin: 0; | 
| +    min-height: 1000px; | 
| +    overflow: hidden; | 
| +} | 
| + | 
| +#near { | 
| +    position: absolute; | 
| +    left: 200px; | 
| +    top: 200px; | 
| +    width: 100px; | 
| +    height: 100px; | 
| +    background-color: red; | 
| +} | 
| + | 
| +#far { | 
| +    position: absolute; | 
| +    left: 200px; | 
| +    top: 9000px; | 
| +    width: 100px; | 
| +    height: 100px; | 
| +    background-color: green; | 
| +} | 
| +</style> | 
| + | 
| +<script> | 
| +function test() | 
| +{ | 
| +    InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.dumpAsTextWithPixelResults();"} ); | 
| + | 
| +    InspectorTest.sendCommand("Emulation.setVisualTransformOverride", { "x": 100, "y": 100, "width": 100, "height": 100, "scale": 1.0 }, firstOverrideActive); | 
| + | 
| +    function firstOverrideActive() | 
| +    { | 
| +        InspectorTest.sendCommand("Emulation.setVisualTransformOverride", { "x": 200, "y": 200, "width": 400, "height": 400, "scale": 2.0 }, secondOverrideActive); | 
| +    } | 
| + | 
| +    function secondOverrideActive() | 
| +    { | 
| +        // Complete the test without closing the inspector, so that the override stays active for the picture. | 
| +        InspectorTest.sendCommand("Runtime.evaluate", { "expression": "testRunner.notifyDone();"} ); | 
| +    } | 
| +} | 
| +</script> | 
| + | 
| +</head> | 
| +<body onload="runTest()"> | 
| +<p> | 
| +Tests that a visual transform override can reposition and scale an element that lies inside the normal painting area. Also verifies that applying a subsequent override updates a prior override. | 
| +</p> | 
| +<div id="near"></div> | 
| +<div id="far"></div> | 
| +</body> | 
| +</html> | 
|  |