Bug 180416

Summary: WebDriver: test imported/w3c/webdriver/tests/set_window_rect.py::test_width_height_floats fails
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebDriverAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: bburg
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   

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 ***