Backed out changeset 25505bf601f6 (bug 1326236) for test_update_wizard.py failures a=backout

This commit is contained in:
Wes Kocher 2016-12-29 12:46:05 -08:00
Родитель f5487ba06d
Коммит 4ea759de85
4 изменённых файлов: 2 добавлений и 10 удалений

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

@ -53,10 +53,6 @@ class TestAboutWindow(PuppeteerMixin, MarionetteTestCase):
# downloading panel
self.assertEqual(self.deck.downloading.element.get_property('localName'), 'hbox')
# check deck attributes
self.assertIsInstance(self.deck.selected_index, int)
self.assertEqual(self.deck.selected_panel, self.deck.check_for_updates)
def test_open_window(self):
"""Test various opening strategies."""
def opener(win):

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

@ -60,7 +60,3 @@ class TestUpdateWizard(PuppeteerMixin, MarionetteTestCase):
# elements of the downloading panel
self.assertEqual(self.wizard.downloading.progress.get_property('localName'),
'progressmeter')
# check wizard attributes
self.assertIsInstance(self.wizard.selected_index, int)
self.assertEqual(self.wizard.selected_panel, self.wizard.checking)

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

@ -114,7 +114,7 @@ class Deck(UIBaseLib):
:return: Index of the selected panel.
"""
return int(self.element.get_property('selectedIndex'))
return int(self.element.get_attribute('selectedIndex'))
@property
def selected_panel(self):

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

@ -207,7 +207,7 @@ class Wizard(UIBaseLib):
:return: Index of the selected panel.
"""
return int(self.element.get_property('pageIndex'))
return int(self.element.get_attribute('pageIndex'))
@property
def selected_panel(self):