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

Unified Diff: LayoutTests/fast/repaint/relayout-fixed-position-after-scale.html

Issue 18546003: Fix tests to avoid page scale reset when setting page scale. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Use setPageScaleFactorLimits(). Created 7 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
Index: LayoutTests/fast/repaint/relayout-fixed-position-after-scale.html
diff --git a/LayoutTests/fast/repaint/relayout-fixed-position-after-scale.html b/LayoutTests/fast/repaint/relayout-fixed-position-after-scale.html
index 024ec65a13d28186036237349b0e5c28c1c08701..2be112f75e243058c3980b3747f48d20d2bfe157 100644
--- a/LayoutTests/fast/repaint/relayout-fixed-position-after-scale.html
+++ b/LayoutTests/fast/repaint/relayout-fixed-position-after-scale.html
@@ -28,14 +28,14 @@
<div class="percentage_size" style="right:10%;bottom:5%"></div>
<script>
function runTest() {
- if (window.internals) {
+ if (window.internals && window.eventSender) {
window.internals.settings.setFixedElementsLayoutRelativeToFrame(true);
// Force scrollbar to hide and re-layout immediately.
- window.internals.setPageScaleFactor(0.1, 0, 0);
+ window.eventSender.setPageScaleFactor(0.1, 0, 0);
document.body.offsetTop;
- window.internals.setPageScaleFactor(0.5, 0, 0);
+ window.eventSender.setPageScaleFactor(0.5, 0, 0);
}
}
</script>
« no previous file with comments | « LayoutTests/fast/repaint/fixed-right-in-page-scale.html ('k') | LayoutTests/fast/repaint/scale-page-shrink.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698