mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 01:05:45 +00:00
Bug 1391691 - Bringing window out of fullscreen does not restore x/y position. r=automatedtester
When we set the window rect to width/height 400, we only want to test those qualities. MozReview-Commit-ID: 76qqCOOwjXQ --HG-- extra : rebase_source : b4dafc793a84b48e64b0901e153edfe680da88cf
This commit is contained in:
parent
4e702f412a
commit
63b321cd17
@ -88,17 +88,14 @@ def test_invalid_params(session, data):
|
||||
|
||||
|
||||
def test_fullscreened(session):
|
||||
original = session.window.rect
|
||||
|
||||
# step 10
|
||||
session.window.fullscreen()
|
||||
assert session.window.state == "fullscreen"
|
||||
response = set_window_rect(session, {"width": 400, "height": 400})
|
||||
assert_success(response, {"x": original["x"],
|
||||
"y": original["y"],
|
||||
"width": 400.0,
|
||||
"height": 400.0,
|
||||
"state": "normal"})
|
||||
assert_success(response)
|
||||
assert rect["width"] == 400
|
||||
assert rect["height"] == 400
|
||||
assert rect["state"] == "normal"
|
||||
|
||||
|
||||
def test_minimized(session):
|
||||
|
Loading…
Reference in New Issue
Block a user