This test checks that requesting the viewport size causes any pending layout to occur.

Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
Passviewport-read-size-causes-layout
Asserts run
Pass
assert_equals(1280, 1280, "window.visualViewport.width should match the window width.")
    at Test.<anonymous> ( /visual-viewport/viewport-read-size-causes-layout.html:16:7)
Pass
assert_equals(720, 720, "window.visualViewport.height should match the window height.")
    at Test.<anonymous> ( /visual-viewport/viewport-read-size-causes-layout.html:18:7)
Pass
assert_equals(1280, 1280, "Reading viewport width should cause a layout and exclude the new scrollbar.")
    at Test.<anonymous> ( /visual-viewport/viewport-read-size-causes-layout.html:28:7)
Pass
assert_equals(720, 720, "Reading viewport height should cause a layout and exclude the new scrollbar.")
    at Test.<anonymous> ( /visual-viewport/viewport-read-size-causes-layout.html:30:7)