Bug 1478358 - [wdspec] Enforce a default window position for each session. r=ato
authorHenrik Skupin <mail@hskupin.info>
Mon, 14 Jan 2019 06:31:05 +0000
changeset 513724 d4a75d417b037b3e3a0b52c86ebba9b1f3fdb99a
parent 513723 602e8cefc90030f5ae190c56ae155cb5d03f9402
child 513725 3ef29704bc3d34cc4e3b4c804f5547d5527c2564
push id1953
push userffxbld-merge
push dateMon, 11 Mar 2019 12:10:20 +0000
treeherdermozilla-release@9c35dcbaa899 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1478358
milestone66.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1478358 - [wdspec] Enforce a default window position for each session. r=ato To have the same pre-conditions for all wdspec tests, the session fixture has to set a default window position. Depends on D16338 Differential Revision: https://phabricator.services.mozilla.com/D16340
testing/web-platform/tests/webdriver/tests/support/defaults.py
testing/web-platform/tests/webdriver/tests/support/fixtures.py
--- a/testing/web-platform/tests/webdriver/tests/support/defaults.py
+++ b/testing/web-platform/tests/webdriver/tests/support/defaults.py
@@ -1,8 +1,9 @@
 SCRIPT_TIMEOUT = 30
 PAGE_LOAD_TIMEOUT = 300
 IMPLICIT_WAIT_TIMEOUT = 0
 
+WINDOW_POSITION = (100, 100)
 WINDOW_SIZE = (800, 600)
 
 DRIVER_HOST = '127.0.0.1'
 DRIVER_PORT = 4444
--- a/testing/web-platform/tests/webdriver/tests/support/fixtures.py
+++ b/testing/web-platform/tests/webdriver/tests/support/fixtures.py
@@ -147,18 +147,19 @@ def session(capabilities, configuration,
             configuration["port"],
             capabilities=caps)
     try:
         _current_session.start()
     except webdriver.error.SessionNotCreatedException:
         if not _current_session.session_id:
             raise
 
-    # Enforce a fixed default window size
+    # Enforce a fixed default window size and position
     _current_session.window.size = defaults.WINDOW_SIZE
+    _current_session.window.position = defaults.WINDOW_POSITION
 
     yield _current_session
 
     cleanup_session(_current_session)
 
 
 @pytest.fixture(scope="function")
 def current_session():