Bug 1396866 - Disable test_maximize_when_resized_to_max_size. r?automatedtester draft
authorAndreas Tolfsen <ato@sny.no>
Sat, 09 Sep 2017 12:22:53 +0100
changeset 663137 49bc0716a649b3ea629abddebc654cbc0f1be723
parent 663136 1c4b69d415ecaab3819a9a6d1014eeaa23ada7a5
child 731110 989ab6b57ede270eb190969ad2066afab07c722a
push id79339
push userbmo:ato@sny.no
push dateTue, 12 Sep 2017 18:05:14 +0000
reviewersautomatedtester
bugs1396866
milestone57.0a1
Bug 1396866 - Disable test_maximize_when_resized_to_max_size. r?automatedtester This test causes both a failure and an error and we need to investigate how to reuse the wptrunner session configuration when implicitly starting a session. MozReview-Commit-ID: 5k7nfevamZY
testing/web-platform/tests/webdriver/tests/contexts/maximize_window.py
--- a/testing/web-platform/tests/webdriver/tests/contexts/maximize_window.py
+++ b/testing/web-platform/tests/webdriver/tests/contexts/maximize_window.py
@@ -244,27 +244,34 @@ def test_maximize_twice_is_idempotent(se
     assert_success(first_response)
     max_size = session.window.size
 
     second_response = maximize(session)
     assert_success(second_response)
     assert session.window.size == max_size
 
 
+"""
+TODO(ato): Implicit session start does not use configuration passed on
+from wptrunner.  This causes an exception.
+
+See https://bugzil.la/1398459.
+
 def test_maximize_when_resized_to_max_size(session):
     # Determine the largest available window size by first maximising
     # the window and getting the window rect dimensions.
     #
     # Then resize the window to the maximum available size.
     session.end()
     available = session.window.maximize()
     session.end()
 
-    session.window.size = (int(available["width"]), int(available["height"]))
+    session.window.size = available
 
     # In certain window managers a window extending to the full available
     # dimensions of the screen may not imply that the window is maximised,
     # since this is often a special state.  If a remote end expects a DOM
     # resize event, this may not fire if the window has already reached
     # its expected dimensions.
     before = session.window.size
     session.window.maximize()
     assert session.window.size == before
+"""