Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/repaint/fixed-right-in-page-scale.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/repaint/fixed-right-in-page-scale.html b/third_party/WebKit/LayoutTests/fast/repaint/fixed-right-in-page-scale.html |
| index 88ea821caf55e00ef934d1640b9d1883c686a52d..bdb76d385ba24ddfe8cc013cacdf81f2d1eb7708 100644 |
| --- a/third_party/WebKit/LayoutTests/fast/repaint/fixed-right-in-page-scale.html |
| +++ b/third_party/WebKit/LayoutTests/fast/repaint/fixed-right-in-page-scale.html |
| @@ -6,26 +6,31 @@ |
| height: 0px; |
| } |
| </style> |
| + <script src="../../resources/js-test.js"></script> |
| <script> |
| window.enablePixelTesting = true; |
| function scroll() { |
| + // Scrolls so that unscaled content is out of view |
| window.scrollTo(100,100); |
| } |
| function applyScaleFactor() { |
| var scaleFactor = 2.0; |
| - if (window.internals) |
| + if (window.internals) { |
|
pdr.
2016/08/22 21:26:08
Nit: no need for extra curlies
|
| internals.setPageScaleFactor(scaleFactor); |
| + } |
| } |
| function test() { |
| + if (window.internals) |
| + internals.settings.setScrollAnimatorEnabled(false); |
| + |
| // Scroll before applying page scale so we scroll the layout viewport. |
| scroll(); |
| applyScaleFactor(); |
| } |
| </script> |
| - <script src="../../resources/js-test.js"></script> |
| </head> |
| <body style="height:2000px; width: 2000px; margin:0px;" onload="test();"> |
| <div style="position: fixed; top: -100px; right: 500px; z-index: 1"> |