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

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

Issue 2901203002: Rename VisualViewport properties to match updated spec (Closed)
Patch Set: Make methods const Created 3 years, 7 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 ddbac6a9bbbd77c9025f08514d6ce2b3610fed64..028fafaaaa1be0306960549f7e07d17514dc1a23 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
@@ -16,7 +16,7 @@
var scrollbarHeight = 15;
function frameViewport() {
- return frame.contentWindow.visualViewport;
+ return frame.contentWindow.view;
}
async_test(function(t) {
@@ -27,12 +27,12 @@
// values in the iframe.
var frame = document.getElementById("frame");
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().width, 200 - scrollbarWidth);
+ assert_equals(frameViewport().height, 500 - scrollbarHeight);
+ assert_equals(frameViewport().pageLeft, 10);
+ assert_equals(frameViewport().pageTop, 15);
+ assert_equals(frameViewport().offsetLeft, 0);
+ assert_equals(frameViewport().offsetTop, 0);
assert_equals(frameViewport().scale, 1);
t.done();

Powered by Google App Engine
This is Rietveld 408576698