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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html

Issue 2156143002: Add page coordinates to the ViewportAPI (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase + fix layout tests Created 4 years, 5 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: third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html b/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html
index 536f0a2afe5d713980c003ece030aac50bc23951..ddbac6a9bbbd77c9025f08514d6ce2b3610fed64 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/viewport/viewport-dimensions-iframe.html
@@ -29,6 +29,8 @@
frame.contentWindow.scrollTo(10, 15);
assert_equals(frameViewport().clientWidth, 200 - scrollbarWidth);
assert_equals(frameViewport().clientHeight, 500 - scrollbarHeight);
+ assert_equals(frameViewport().pageX, 10);
+ assert_equals(frameViewport().pageY, 15);
assert_equals(frameViewport().scrollLeft, 0);
assert_equals(frameViewport().scrollTop, 0);
assert_equals(frameViewport().scale, 1);

Powered by Google App Engine
This is Rietveld 408576698