Bug 1315235 - Remove remaining call to restore_pref() from update tests. draft
authorHenrik Skupin <mail@hskupin.info>
Fri, 04 Nov 2016 13:59:35 +0100
changeset 433929 11b2012cc5e2147b44e79c5b8e360d85a0af9028
parent 431996 2c773b97167252cedcba0be0c7af9d4cab192ef5
child 535980 91bf49842057550f3f78894d0f7bcda0ea5fa1e3
push id34678
push userbmo:hskupin@gmail.com
push dateFri, 04 Nov 2016 13:00:02 +0000
bugs1315235
milestone52.0a1
Bug 1315235 - Remove remaining call to restore_pref() from update tests. MozReview-Commit-ID: I3T43kOB2AQ
testing/firefox-ui/harness/firefox_ui_harness/testcases.py
--- a/testing/firefox-ui/harness/firefox_ui_harness/testcases.py
+++ b/testing/firefox-ui/harness/firefox_ui_harness/testcases.py
@@ -264,17 +264,17 @@ class UpdateTestCase(FirefoxTestCase):
                                                              ]),
                                                     message='Final wizard page has been selected.')
 
                 else:
                     raise Exception('Invalid wizard page for downloading an update: {}'.format(
                                     dialog.wizard.selected_panel))
 
             finally:
-                prefs.restore_pref(self.PREF_APP_UPDATE_ALTWINDOWTYPE)
+                self.marionette.clear_pref(self.PREF_APP_UPDATE_ALTWINDOWTYPE)
 
         # The old update wizard dialog has to be handled differently. It's necessary
         # for fallback updates and invalid add-on versions.
         if isinstance(window, UpdateWizardDialog):
             download_via_update_wizard(window)
             return
 
         if window.deck.selected_panel == window.deck.download_and_install: