Bug 180416 - WebDriver: test imported/w3c/webdriver/tests/set_window_rect.py::test_width_height_floats fails
Summary: WebDriver: test imported/w3c/webdriver/tests/set_window_rect.py::test_width_h...
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 03:54 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 03:54:24 PST
session = <webdriver.client.Session object at 0x7f2e044424d0>

    def test_width_height_floats(session):
        """
        8. If width or height is neither null nor a Number from 0 to 2^31 -
        1, return error with error code invalid argument.
        """
    
        response = set_window_rect(session, {"width": 500.5, "height": 420})
        value = assert_success(response)
>       assert value["width"] == 500
E       assert 420 == 500

response   = <Responsetatus=200 body={"value": {"y": 0, "x": 0, "height": 0, "width": 420}}>
session    = <webdriver.client.Session object at 0x7f2e044424d0>
value      = {'height': 0, 'width': 420, 'x': 0, 'y': 0}
Comment 1 Carlos Garcia Campos 2018-01-23 01:10:24 PST

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