зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1839775 - Remove accessbility tests using HTMLElement.tap(). r=webdriver-reviewers,whimboo
These unit tests verify HTMLElement.tap() with accessibility checks. Since tap() is going to be removed in bug 1792529, we can remove these tests as well. Note that HTMLElement.click() is similar to tap(), and is still covered in the file. Differential Revision: https://phabricator.services.mozilla.com/D182089
This commit is contained in:
Родитель
eced876a19
Коммит
85be4e7679
|
@ -118,36 +118,6 @@ class TestAccessibility(MarionetteTestCase):
|
|||
test_accessibility = self.marionette.absolute_url("test_accessibility.html")
|
||||
self.marionette.navigate(test_accessibility)
|
||||
|
||||
def test_valid_single_tap(self):
|
||||
self.setup_accessibility()
|
||||
# No exception should be raised
|
||||
self.run_element_test(self.valid_elementIDs, lambda button: button.tap())
|
||||
|
||||
def test_single_tap_raises_element_not_accessible(self):
|
||||
self.setup_accessibility()
|
||||
self.run_element_test(
|
||||
self.invalid_elementIDs,
|
||||
lambda button: self.assertRaises(ElementNotAccessibleException, button.tap),
|
||||
)
|
||||
self.run_element_test(
|
||||
self.falsy_elements,
|
||||
lambda button: self.assertRaises(
|
||||
ElementNotInteractableException, button.tap
|
||||
),
|
||||
)
|
||||
|
||||
def test_single_tap_raises_no_exceptions(self):
|
||||
self.setup_accessibility(False, True)
|
||||
# No exception should be raised
|
||||
self.run_element_test(self.invalid_elementIDs, lambda button: button.tap())
|
||||
# Elements are invisible
|
||||
self.run_element_test(
|
||||
self.falsy_elements,
|
||||
lambda button: self.assertRaises(
|
||||
ElementNotInteractableException, button.tap
|
||||
),
|
||||
)
|
||||
|
||||
def test_valid_click(self):
|
||||
self.setup_accessibility()
|
||||
# No exception should be raised
|
||||
|
|
Загрузка…
Ссылка в новой задаче