mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1097032 - Add test for expected.elements_present when there are no elements found. r=atolfsen
This commit is contained in:
parent
da4453f15f
commit
160b5aa67e
@ -95,6 +95,10 @@ class TestExpected(marionette_test.MarionetteTestCase):
|
||||
els = expected.elements_present(By.TAG_NAME, "p")(self.marionette)
|
||||
self.assertEqual(len(els), 2)
|
||||
|
||||
def test_elements_present_not_present(self):
|
||||
r = expected.elements_present(no_such_elements)(self.marionette)
|
||||
self.assertEqual(r, [])
|
||||
|
||||
def test_elements_not_present_func(self):
|
||||
r = expected.element_not_present(no_such_elements)(self.marionette)
|
||||
self.assertIsInstance(r, bool)
|
||||
|
Loading…
Reference in New Issue
Block a user