Bug 180419 - WebDriver: test imported/w3c/webdriver/tests/set_window_rect.py::test_height_width_larger_than_max fails
Summary: WebDriver: test imported/w3c/webdriver/tests/set_window_rect.py::test_height_...
Status: RESOLVED DUPLICATE of bug 181728
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebDriver (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-05 04:11 PST by Carlos Garcia Campos
Modified: 2018-01-23 01:10 PST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Carlos Garcia Campos 2017-12-05 04:11:03 PST
session = <webdriver.client.Session object at 0x7f2e044424d0>

    def test_height_width_larger_than_max(session):
        max = session.execute_script("""
            return {
              width: window.screen.availWidth,
              height: window.screen.availHeight,
            }""")
    
        # step 12
        response = set_window_rect(session, {"width": max["width"] + 100,
                                             "height": max["height"] + 100})
    
        # step 14
        rect = assert_success(response)
>       assert rect["width"] >= max["width"]
E       assert 868 >= 1024

max        = {'height': 768, 'width': 1024}
rect       = {'height': 0, 'width': 868, 'x': 100, 'y': 450}
response   = <Responsetatus=200 body={"value": {"y": 450, "x": 100, "height": 0, "width": 868}}>
session    = <webdriver.client.Session object at 0x7f2e044424d0>
Comment 1 Carlos Garcia Campos 2018-01-23 01:10:37 PST

*** This bug has been marked as a duplicate of bug 181728 ***