зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1285240: Update tests to prevent redefinitions r=ato
The tests had the same name which caused a redefinition meaning only one of the tests was run. MozReview-Commit-ID: LuflhcD4wKl --HG-- extra : rebase_source : 09b233c42cd0dba4437f51dc63986c119711cd70
This commit is contained in:
Родитель
2302a9db3b
Коммит
011ccb6f4b
|
@ -147,7 +147,7 @@ class TestFindElementHTML(MarionetteTestCase):
|
||||||
self.assertRaises(NoSuchElementException, self.marionette.find_element, By.TAG_NAME, "cheese")
|
self.assertRaises(NoSuchElementException, self.marionette.find_element, By.TAG_NAME, "cheese")
|
||||||
self.assertRaises(NoSuchElementException, self.marionette.find_element, By.XPATH, "cheese")
|
self.assertRaises(NoSuchElementException, self.marionette.find_element, By.XPATH, "cheese")
|
||||||
|
|
||||||
def test_not_found(self):
|
def test_not_found_from_element(self):
|
||||||
self.marionette.set_search_timeout(0)
|
self.marionette.set_search_timeout(0)
|
||||||
self.marionette.navigate(id_html)
|
self.marionette.navigate(id_html)
|
||||||
el = self.marionette.find_element(By.ID, "foo")
|
el = self.marionette.find_element(By.ID, "foo")
|
||||||
|
@ -160,7 +160,7 @@ class TestFindElementHTML(MarionetteTestCase):
|
||||||
self.assertRaises(NoSuchElementException, el.find_element, By.TAG_NAME, "cheese")
|
self.assertRaises(NoSuchElementException, el.find_element, By.TAG_NAME, "cheese")
|
||||||
self.assertRaises(NoSuchElementException, el.find_element, By.XPATH, "cheese")
|
self.assertRaises(NoSuchElementException, el.find_element, By.XPATH, "cheese")
|
||||||
|
|
||||||
def test_not_found_implicit_wait(self):
|
def test_not_found_implicit_wait_from_element(self):
|
||||||
self.marionette.set_search_timeout(50)
|
self.marionette.set_search_timeout(50)
|
||||||
self.marionette.navigate(id_html)
|
self.marionette.navigate(id_html)
|
||||||
el = self.marionette.find_element(By.ID, "foo")
|
el = self.marionette.find_element(By.ID, "foo")
|
||||||
|
|
Загрузка…
Ссылка в новой задаче