зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1373198 - Part 11: Disable rcwn for firefox-ui-test tests which require deterministic cache behavior. r=whimboo
This commit is contained in:
Родитель
a4ec39d147
Коммит
d7c4392c7c
|
@ -32,6 +32,8 @@ class TestSSLStatusAfterRestart(PuppeteerMixin, MarionetteTestCase):
|
|||
|
||||
# Set browser to restore previous session
|
||||
self.marionette.set_pref('browser.startup.page', 3)
|
||||
# Disable rcwn to make cache behavior deterministic
|
||||
self.marionette.set_pref('network.http.rcwn.enable', False)
|
||||
|
||||
self.locationbar = self.browser.navbar.locationbar
|
||||
self.identity_popup = self.locationbar.identity_popup
|
||||
|
@ -43,6 +45,7 @@ class TestSSLStatusAfterRestart(PuppeteerMixin, MarionetteTestCase):
|
|||
self.browser.switch_to()
|
||||
self.identity_popup.close(force=True)
|
||||
self.marionette.clear_pref('browser.startup.page')
|
||||
self.marionette.clear_pref('network.http.rcwn.enable')
|
||||
finally:
|
||||
super(TestSSLStatusAfterRestart, self).tearDown()
|
||||
|
||||
|
|
|
@ -17,10 +17,13 @@ class TestSubmitUnencryptedInfoWarning(PuppeteerMixin, MarionetteTestCase):
|
|||
self.url = 'https://ssl-dv.mozqa.com/data/firefox/security/unencryptedsearch.html'
|
||||
self.test_string = 'mozilla'
|
||||
|
||||
# Disable rcwn to make cache behavior deterministic
|
||||
self.marionette.set_pref('network.http.rcwn.enabled', False)
|
||||
self.marionette.set_pref('security.warn_submit_insecure', True)
|
||||
|
||||
def tearDown(self):
|
||||
try:
|
||||
self.marionette.clear_pref('network.http.rcwn.enabled')
|
||||
self.marionette.clear_pref('security.warn_submit_insecure')
|
||||
finally:
|
||||
super(TestSubmitUnencryptedInfoWarning, self).tearDown()
|
||||
|
|
|
@ -17,6 +17,15 @@ class TestUntrustedConnectionErrorPage(PuppeteerMixin, MarionetteTestCase):
|
|||
|
||||
self.url = 'https://ssl-selfsigned.mozqa.com'
|
||||
|
||||
# Disable rcwn to make cache behavior deterministic
|
||||
self.marionette.set_pref('network.http.rcwn.enabled', False)
|
||||
|
||||
def tearDown(self):
|
||||
try:
|
||||
self.marionette.clear_pref('network.http.rcwn.enabled')
|
||||
finally:
|
||||
super(TestUntrustedConnectionErrorPage, self).tearDown()
|
||||
|
||||
def test_untrusted_connection_error_page(self):
|
||||
self.marionette.set_context('content')
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче