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:
David Burns 2016-07-07 22:20:32 +01:00
Родитель 2302a9db3b
Коммит 011ccb6f4b
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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")