Skip to content

[Webdriver: Set Window Rect] Why we expect no change when only width or height is provided? #53409

Open
@yezhizhen

Description

@yezhizhen

The Step 17 of Spec says as long as one is not null, we should set them.

However, following wpt-test expects no change in such situations.

{"height": 200, "y": 200},
])
def test_no_change(session, rect):
original = session.window.rect
response = set_window_rect(session, rect)
assert_success(response, original)

Why? As I checked, the original is also never "200".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions