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

Unified Diff: LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe-scroll.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/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe-scroll.html
diff --git a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe-scroll.html b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe-scroll.html
index 1999cb2b01c979f2e3d643e971edb97d22df3d43..226a0e39f6c130b3215d30d10db98fbd680e4403 100644
--- a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe-scroll.html
+++ b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-iframe-scroll.html
@@ -6,16 +6,16 @@
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
- if (window.internals) {
+ if (window.internals && window.eventSender) {
window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
window.internals.settings.setFixedPositionCreatesStackingContext(true);
addEventListener("load", function() {
- window.internals.setPageScaleFactor(0.5, 0, 0);
+ window.eventSender.setPageScaleFactor(0.5, 0, 0);
setTimeout(function() {
var layerTreeScaledDown = internals.layerTreeAsText(document.getElementById("iframe").contentDocument);
- window.internals.setPageScaleFactor(1.5, 0, 0);
+ window.eventSender.setPageScaleFactor(1.5, 0, 0);
setTimeout(function() {
var layerTreeScaledUp = internals.layerTreeAsText(document.getElementById("iframe").contentDocument);
// Because logical size of the frame is unchanged, the layer tree in the frame should not be affected by the page scale.

Powered by Google App Engine
This is Rietveld 408576698