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

Unified Diff: LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js

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/events/script-tests/page-scaled-mouse-click.js
diff --git a/LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js b/LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js
index 0d80b73b8e45694921874ad632d507e719c1125c..89fa4943d36decd19bf19b14026370b4b35032fb 100644
--- a/LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js
+++ b/LayoutTests/fast/events/script-tests/page-scaled-mouse-click.js
@@ -43,13 +43,13 @@ function testEvents(button, description, expectedString) {
clearEventLog();
}
-if (window.eventSender && window.internals) {
+if (window.eventSender) {
eventSender.mouseMoveTo(10, 10);
// We are clicking in the same position on screen. As we scale or transform the page,
// we expect the pageX and pageY event coordinates to change because different
// parts of the document are under the mouse.
testEvents(0, "Unscaled", "click(10, 10)");
- window.internals.setPageScaleFactor(0.5, 0, 0);
+ window.eventSender.setPageScaleFactor(0.5, 0, 0);
testEvents(0, "setPageScale(0.5)", "click(20, 20)");
}

Powered by Google App Engine
This is Rietveld 408576698