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

Unified Diff: LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled.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.html
diff --git a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled.html b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled.html
index 3a795aba7c69c584ae8217beed9ec752c3e6865d..7247f5287b758582ef3f4829e3995bdda3c9ffd2 100644
--- a/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled.html
+++ b/LayoutTests/compositing/layer-creation/fixed-position-out-of-view-scaled.html
@@ -14,18 +14,18 @@
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() {
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