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

Unified Diff: third_party/WebKit/LayoutTests/fast/dom/viewport/read-viewport-size-causes-layout.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/read-viewport-size-causes-layout.html
diff --git a/third_party/WebKit/LayoutTests/fast/dom/viewport/read-viewport-size-causes-layout.html b/third_party/WebKit/LayoutTests/fast/dom/viewport/read-viewport-size-causes-layout.html
index 3311aa97267511197fe91b56d3b65ee49c8e1b87..1898e362a74602896f361ed3e674549383379d4a 100644
--- a/third_party/WebKit/LayoutTests/fast/dom/viewport/read-viewport-size-causes-layout.html
+++ b/third_party/WebKit/LayoutTests/fast/dom/viewport/read-viewport-size-causes-layout.html
@@ -12,17 +12,17 @@
<script>
async_test(function(t) {
window.onload = t.step_func(function() {
- assert_equals(visualViewport.clientWidth, document.documentElement.clientWidth,
- "window.visualViewport.width should match the window width.");
- assert_equals(visualViewport.clientHeight, document.documentElement.clientHeight,
- "window.visualViewport.height should match the window height.");
+ assert_equals(view.width, document.documentElement.clientWidth,
+ "window.view.width should match the window width.");
+ assert_equals(view.height, document.documentElement.clientHeight,
+ "window.view.height should match the window height.");
// Add overflow so scrollbars appear.
document.body.style.width = "2000px";
document.body.style.height = "2000px";
- var viewportWidth = window.visualViewport.clientWidth;
- var viewportHeight = window.visualViewport.clientHeight;
+ var viewportWidth = window.view.width;
+ var viewportHeight = window.view.height;
assert_equals(viewportWidth, document.documentElement.clientWidth,
"Reading viewport width should cause a layout and exclude the new scrollbar.");

Powered by Google App Engine
This is Rietveld 408576698