Index: third_party/WebKit/LayoutTests/inspector-protocol/emulation/visual-transform-unobserved.html |
diff --git a/third_party/WebKit/LayoutTests/inspector-protocol/emulation/visual-transform-unobserved.html b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/visual-transform-unobserved.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fe183f556cfc0cc51471596e81fa0bd7c03cb785 |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/inspector-protocol/emulation/visual-transform-unobserved.html |
@@ -0,0 +1,47 @@ |
+<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; |
+} |
+ |
+#long { |
+ height: 2000px; |
+ width: 100px; |
+ background-color: green; |
+} |
+</style> |
+ |
+<script> |
+function test() |
+{ |
+ InspectorTest.sendCommand("Emulation.setVisualTransformOverride", { "x": 200, "y": 200, "width": 400, "height": 400, "scale": 2.0 }, overrideActive); |
+ |
+ function overrideActive() |
+ { |
+ InspectorTest.log("innerWidth = " + window.innerWidth); |
+ InspectorTest.log("innerHeight = " + window.innerHeight); |
+ InspectorTest.log("scrollLeft = " + document.scrollingElement.scrollLeft); |
+ InspectorTest.log("scrollTop = " + document.scrollingElement.scrollTop); |
+ InspectorTest.completeTest(); |
+ } |
+} |
+</script> |
+ |
+</head> |
+<body onload="runTest()"> |
+<p> |
+Tests that a visual transform override is not observed by the page. |
+</p> |
+<div id="long"></div> |
+</body> |
+</html> |