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:
Andreas Tolfsen 2017-08-18 18:42:20 +01:00
parent 4e702f412a
commit 63b321cd17

View File

@ -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):