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: | WebDriver | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | bburg |
| Priority: | P2 | ||
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Carlos Garcia Campos
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}
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Carlos Garcia Campos
*** This bug has been marked as a duplicate of bug 181728 ***