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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/dom/window-inner-size-scaling.html

Issue 1712743002: Revert "Make window.scroll properties relative to the layout viewport by default." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix failing test Created 4 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 <html>
2 <script src="../../resources/js-test.js"></script>
3 <script>
4 description("This test ensures window.innerWidth/innerHeight return the size of the visual viewport in CSS pixels.");
5
6 var originalWidth = window.innerWidth;
7 var originalHeight = window.innerHeight;
8 var scale = 2;
9
10 if (window.internals)
11 window.internals.setPageScaleFactor(scale);
12
13 shouldBe("window.innerWidth", "Math.floor(originalWidth / scale)");
14 shouldBe("window.innerHeight", "Math.floor(originalHeight / scale)");
15 </script>
16 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698