Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Unified Diff: third_party/WebKit/LayoutTests/fast/repaint/fixed-right-in-page-scale.html

Issue 2268733002: Update fixed-right-in-page-scale.html in an attempt to make it pass (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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">
« no previous file with comments | « third_party/WebKit/LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698