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

Unified Diff: LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-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-scroll.html
diff --git a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-scroll.html b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-scroll.html
index 844d4a7f82dd0476ba68d49fcb6121f20252aac1..d74f3687db90589e630b1333ec7f274179d4e7f5 100644
--- a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-scroll.html
+++ b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled-scroll.html
@@ -14,7 +14,7 @@
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
- if (window.internals) {
+ if (window.internals && window.eventSender) {
window.internals.settings.setAcceleratedCompositingForFixedPositionEnabled(true);
window.internals.settings.setFixedPositionCreatesStackingContext(true);
@@ -23,11 +23,11 @@
document.getElementById("layerTree").innerText = internals.layerTreeAsText(document);
- window.internals.setPageScaleFactor(0.5, 0, 0);
+ window.eventSender.setPageScaleFactor(0.5, 0, 0);
setTimeout(function() {
document.getElementById("layerTreeScaledDown").innerText = internals.layerTreeAsText(document);
- window.internals.setPageScaleFactor(1.5, 0, 0);
+ window.eventSender.setPageScaleFactor(1.5, 0, 0);
setTimeout(function() {
document.getElementById("layerTreeScaledUp").innerText = internals.layerTreeAsText(document);
testRunner.notifyDone();

Powered by Google App Engine
This is Rietveld 408576698