зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1631735 Part 4: Disable tests and portions of tests that resize fullscreen windows on macOS. r=webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D164473
This commit is contained in:
Родитель
ebf1eec9dd
Коммит
9eacdab345
|
@ -4,8 +4,11 @@
|
|||
|
||||
from __future__ import absolute_import, print_function
|
||||
|
||||
import sys
|
||||
|
||||
from marionette_driver.errors import InvalidArgumentException
|
||||
from marionette_harness import MarionetteTestCase
|
||||
from unittest import skipIf
|
||||
|
||||
|
||||
class TestWindowRect(MarionetteTestCase):
|
||||
|
@ -299,6 +302,17 @@ class TestWindowRect(MarionetteTestCase):
|
|||
self.assertEqual(result_size["width"], expected_size["width"])
|
||||
self.assertEqual(result_size["height"], expected_size["height"])
|
||||
|
||||
# marionette attempts to exit fullscreen before minimizing the window.
|
||||
# To do this, it waits on a sizemode event, but that event is sent at
|
||||
# the beginning of the fullscreen transition. For macOS native
|
||||
# fullscreen, it's rejected to try to minimize the window during the
|
||||
# transition, and there is *no* event sent at the end of transition.
|
||||
# This puts marionette in an impossible position. So for now, we
|
||||
# skip this test on macOS. Bug 1802192.
|
||||
@skipIf(
|
||||
sys.platform.startswith("darwin"),
|
||||
"Bug 1802192 - macOS fullscreen windows can't be resized.",
|
||||
)
|
||||
def test_resize_while_fullscreen(self):
|
||||
self.marionette.fullscreen()
|
||||
expected_size = self.marionette.set_window_rect(
|
||||
|
|
|
@ -4,3 +4,7 @@
|
|||
[test_no_top_browsing_context]
|
||||
expected:
|
||||
if (os == "linux") and fission and not debug: [PASS, ERROR]
|
||||
[test_fully_exit_fullscreen]
|
||||
bug: 1802192
|
||||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
|
|
@ -14,3 +14,8 @@
|
|||
[test_y_as_current]
|
||||
expected:
|
||||
if not fission and not swgl and not debug: [PASS, FAIL]
|
||||
|
||||
[test_fully_exit_fullscreen]
|
||||
bug: 1802192
|
||||
expected:
|
||||
if os == "mac": FAIL
|
||||
|
|
Загрузка…
Ссылка в новой задаче