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

Unified Diff: LayoutTests/fast/dom/elementFromPoint-scaled-scrolled.html

Issue 1301523006: Fixed layout tests to be scroll order agnostic (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added comment Created 5 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
« no previous file with comments | « no previous file | LayoutTests/fast/dom/zoom-scroll-page-test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/elementFromPoint-scaled-scrolled.html
diff --git a/LayoutTests/fast/dom/elementFromPoint-scaled-scrolled.html b/LayoutTests/fast/dom/elementFromPoint-scaled-scrolled.html
index a0eaf44ffc9966f301359a9b2d787cf85d8efeec..5db1077599c36a74c93667e577eb5bbff32fa71d 100644
--- a/LayoutTests/fast/dom/elementFromPoint-scaled-scrolled.html
+++ b/LayoutTests/fast/dom/elementFromPoint-scaled-scrolled.html
@@ -8,9 +8,10 @@
<div id="result"></div>
<script>
function runTest() {
+ // Scroll before scaling so we scroll the layout viewport rather than the visual.
+ window.scrollTo(100,100);
if (window.internals)
window.internals.setPageScaleFactor(2);
- window.scrollTo(100,100);
if (window.testRunner)
testRunner.dumpAsText();
« no previous file with comments | « no previous file | LayoutTests/fast/dom/zoom-scroll-page-test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698