Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html b/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..a243248a3e5c98a002ac73455bf94354ca46701b |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-invalid-page-scale-factor.html |
| @@ -0,0 +1,25 @@ |
| +<!DOCTYPE html> |
| + |
| +<style> |
| + body { |
| + height: 2000px; |
| + width: 2000px; |
| + } |
| + ::-webkit-scrollbar { |
|
ajuma
2016/09/19 17:37:39
Is this part needed?
sunxd
2016/09/19 18:54:32
Done.
|
| + width: 0px; |
| + height: 0px; |
| + } |
| +</style> |
| + |
| +<script> |
| + function viewport() { |
| + return window.visualViewport; |
|
ajuma
2016/09/19 17:37:39
This seems unused.
sunxd
2016/09/19 18:54:32
Done.
|
| + } |
| + |
| + window.internals.setPageScaleFactor(-1); |
| + |
| + window.onload = function() { |
| + if (window.testRunner) |
| + window.testRunner.capturePixelsAsyncThen(function() {}); |
|
ajuma
2016/09/19 17:37:39
Would it work to set this up in the waitUntilDone/
|
| + } |
| +</script> |