зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1316851 - Testcases should directly inherit from MarionetteTestCase and PuppeteerMixin. r=maja_zf
MozReview-Commit-ID: 2wu70A51NQw --HG-- extra : rebase_source : cdb7ac8cc4165aeec9f36668d2c4003c7465772b
This commit is contained in:
Родитель
f9960e6351
Коммит
5a07feee6f
|
@ -8,9 +8,8 @@ import tempfile
|
|||
|
||||
import mozfile
|
||||
import mozinfo
|
||||
from marionette import BaseMarionetteTestRunner
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from marionette import BaseMarionetteTestRunner, MarionetteTestCase
|
||||
|
||||
|
||||
class FirefoxUITestRunner(BaseMarionetteTestRunner):
|
||||
|
@ -21,7 +20,7 @@ class FirefoxUITestRunner(BaseMarionetteTestRunner):
|
|||
# select the appropriate GeckoInstance
|
||||
self.app = 'fxdesktop'
|
||||
|
||||
self.test_handlers = [FirefoxTestCase]
|
||||
self.test_handlers = [MarionetteTestCase]
|
||||
|
||||
def duplicate_application(self, application_folder):
|
||||
"""Creates a copy of the specified binary."""
|
||||
|
|
|
@ -8,31 +8,17 @@ from datetime import datetime
|
|||
|
||||
import mozfile
|
||||
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import Wait
|
||||
from marionette_driver.errors import NoSuchWindowException
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from firefox_puppeteer.api.prefs import Preferences
|
||||
from firefox_puppeteer.api.software_update import SoftwareUpdate
|
||||
from firefox_puppeteer.ui.update_wizard import UpdateWizardDialog
|
||||
|
||||
|
||||
class FirefoxTestCase(PuppeteerMixin, MarionetteTestCase):
|
||||
"""Base TestCase class for Firefox Desktop tests.
|
||||
|
||||
This class enhances the MarionetteTestCase class with PuppeteerMixin on top
|
||||
of MarionetteTestCase by reordering the MRO.
|
||||
|
||||
If you're extending the inheritance tree further to make specialized
|
||||
TestCases, favour the use of super() as opposed to explicit calls to a
|
||||
parent class.
|
||||
|
||||
"""
|
||||
pass
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import Wait
|
||||
from marionette_driver.errors import NoSuchWindowException
|
||||
|
||||
|
||||
class UpdateTestCase(FirefoxTestCase):
|
||||
class UpdateTestCase(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
TIMEOUT_UPDATE_APPLY = 300
|
||||
TIMEOUT_UPDATE_CHECK = 30
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestBrowserWindowShortcuts(FirefoxTestCase):
|
||||
class TestBrowserWindowShortcuts(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def test_addons_manager(self):
|
||||
# If an about:xyz page is visible, no new tab will be opened
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestAccessLocationBar(FirefoxTestCase):
|
||||
class TestAccessLocationBar(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestAccessLocationBar, self).setUp()
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestEscapeAutocomplete(FirefoxTestCase):
|
||||
class TestEscapeAutocomplete(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestEscapeAutocomplete, self).setUp()
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestFaviconInAutocomplete(FirefoxTestCase):
|
||||
class TestFaviconInAutocomplete(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
PREF_SUGGEST_SEARCHES = 'browser.urlbar.suggest.searches'
|
||||
PREF_SUGGEST_BOOKMARK = 'browser.urlbar.suggest.bookmark'
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestStarInAutocomplete(FirefoxTestCase):
|
||||
class TestStarInAutocomplete(PuppeteerMixin, MarionetteTestCase):
|
||||
""" This replaces
|
||||
http://hg.mozilla.org/qa/mozmill-tests/file/default/firefox/tests/functional/testAwesomeBar/testSuggestBookmarks.js
|
||||
Check a star appears in autocomplete list for a bookmarked page.
|
||||
|
|
|
@ -2,14 +2,13 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from firefox_puppeteer.ui.browser.window import BrowserWindow
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
from firefox_puppeteer.ui.browser.window import BrowserWindow
|
||||
|
||||
|
||||
class TestAboutPrivateBrowsing(FirefoxTestCase):
|
||||
class TestAboutPrivateBrowsing(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestAboutPrivateBrowsing, self).setUp()
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestDVCertificate(FirefoxTestCase):
|
||||
class TestDVCertificate(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestDVCertificate, self).setUp()
|
||||
|
|
|
@ -2,12 +2,11 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestEnablePrivilege(FirefoxTestCase):
|
||||
class TestEnablePrivilege(MarionetteTestCase):
|
||||
|
||||
def test_enable_privilege(self):
|
||||
with self.marionette.using_context('content'):
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestEVCertificate(FirefoxTestCase):
|
||||
class TestEVCertificate(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestEVCertificate, self).setUp()
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestMixedContentPage(FirefoxTestCase):
|
||||
class TestMixedContentPage(PuppeteerMixin, MarionetteTestCase):
|
||||
def setUp(self):
|
||||
super(TestMixedContentPage, self).setUp()
|
||||
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestMixedScriptContentBlocking(FirefoxTestCase):
|
||||
class TestMixedScriptContentBlocking(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestMixedScriptContentBlocking, self).setUp()
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
from urlparse import urlparse
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import expected, Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestNoCertificate(FirefoxTestCase):
|
||||
class TestNoCertificate(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestNoCertificate, self).setUp()
|
||||
|
|
|
@ -4,11 +4,12 @@
|
|||
|
||||
import os
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import Wait
|
||||
|
||||
|
||||
class TestSafeBrowsingInitialDownload(FirefoxTestCase):
|
||||
class TestSafeBrowsingInitialDownload(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
file_extensions = [
|
||||
'pset',
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
import time
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, expected, Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestSafeBrowsingNotificationBar(FirefoxTestCase):
|
||||
class TestSafeBrowsingNotificationBar(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestSafeBrowsingNotificationBar, self).setUp()
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
import time
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, expected, Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestSafeBrowsingWarningPages(FirefoxTestCase):
|
||||
class TestSafeBrowsingWarningPages(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestSafeBrowsingWarningPages, self).setUp()
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
|
||||
import time
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, Wait
|
||||
from marionette_driver.errors import MarionetteException
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestSecurityNotification(FirefoxTestCase):
|
||||
class TestSecurityNotification(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestSecurityNotification, self).setUp()
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
|
||||
import time
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, expected, Wait
|
||||
from marionette_driver.errors import MarionetteException
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestSSLDisabledErrorPage(FirefoxTestCase):
|
||||
class TestSSLDisabledErrorPage(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestSSLDisabledErrorPage, self).setUp()
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from marionette_driver import Wait
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette.marionette_test import skip_if_e10s
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from marionette_driver import Wait
|
||||
|
||||
|
||||
class TestSSLStatusAfterRestart(FirefoxTestCase):
|
||||
class TestSSLStatusAfterRestart(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestSSLStatusAfterRestart, self).setUp()
|
||||
|
|
|
@ -2,15 +2,14 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, expected, Wait
|
||||
|
||||
from marionette_driver.errors import NoAlertPresentException
|
||||
from marionette_driver.marionette import Alert
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestSubmitUnencryptedInfoWarning(FirefoxTestCase):
|
||||
class TestSubmitUnencryptedInfoWarning(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestSubmitUnencryptedInfoWarning, self).setUp()
|
||||
|
|
|
@ -4,13 +4,12 @@
|
|||
|
||||
import time
|
||||
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By
|
||||
from marionette_driver.errors import MarionetteException
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestUnknownIssuer(FirefoxTestCase):
|
||||
class TestUnknownIssuer(MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestUnknownIssuer, self).setUp()
|
||||
|
|
|
@ -4,13 +4,13 @@
|
|||
|
||||
import time
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, Wait
|
||||
from marionette_driver.errors import MarionetteException
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestUntrustedConnectionErrorPage(FirefoxTestCase):
|
||||
class TestUntrustedConnectionErrorPage(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestUntrustedConnectionErrorPage, self).setUp()
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestRestoreWindowsAfterRestart(FirefoxTestCase):
|
||||
class TestRestoreWindowsAfterRestart(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestRestoreWindowsAfterRestart, self).setUp()
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestAboutWindow(FirefoxTestCase):
|
||||
class TestAboutWindow(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestAboutWindow, self).setUp()
|
||||
|
|
|
@ -3,10 +3,12 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import mozversion
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestAppInfo(FirefoxTestCase):
|
||||
class TestAppInfo(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def test_valid_properties(self):
|
||||
binary = self.marionette.bin
|
||||
|
|
|
@ -2,14 +2,14 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from firefox_puppeteer.api.l10n import L10n
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By
|
||||
from marionette_driver.errors import MarionetteException
|
||||
|
||||
from firefox_puppeteer.api.l10n import L10n
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestL10n(FirefoxTestCase):
|
||||
class TestL10n(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestL10n, self).setUp()
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import NoSuchElementException
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestMenuBar(FirefoxTestCase):
|
||||
class TestMenuBar(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestMenuBar, self).setUp()
|
||||
|
|
|
@ -2,17 +2,17 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from firefox_puppeteer.ui.browser.notifications import (
|
||||
AddOnInstallFailedNotification,
|
||||
AddOnInstallConfirmationNotification,
|
||||
)
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By
|
||||
from marionette_driver.errors import TimeoutException
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from firefox_puppeteer.ui.browser.notifications import (
|
||||
AddOnInstallFailedNotification,
|
||||
AddOnInstallConfirmationNotification
|
||||
)
|
||||
|
||||
|
||||
class TestNotifications(FirefoxTestCase):
|
||||
class TestNotifications(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestNotifications, self).setUp()
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestPageInfoWindow(FirefoxTestCase):
|
||||
class TestPageInfoWindow(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def tearDown(self):
|
||||
try:
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, Wait
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestPlaces(FirefoxTestCase):
|
||||
class TestPlaces(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestPlaces, self).setUp()
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class testPreferences(FirefoxTestCase):
|
||||
class testPreferences(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(testPreferences, self).setUp()
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from firefox_puppeteer.errors import NoCertificateError
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestSecurity(FirefoxTestCase):
|
||||
class TestSecurity(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def test_get_address_from_certificate(self):
|
||||
url = 'https://ssl-ev.mozqa.com'
|
||||
|
|
|
@ -4,12 +4,12 @@
|
|||
|
||||
import os
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from firefox_puppeteer.api.software_update import SoftwareUpdate
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestSoftwareUpdate(FirefoxTestCase):
|
||||
class TestSoftwareUpdate(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestSoftwareUpdate, self).setUp()
|
||||
|
@ -69,7 +69,7 @@ class TestSoftwareUpdate(FirefoxTestCase):
|
|||
self.assertTrue(self.software_update.staging_directory)
|
||||
|
||||
|
||||
class TestUpdateChannel(FirefoxTestCase):
|
||||
class TestUpdateChannel(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestUpdateChannel, self).setUp()
|
||||
|
@ -96,7 +96,7 @@ class TestUpdateChannel(FirefoxTestCase):
|
|||
self.assertEqual(self.software_update.update_channel.default_channel, 'new_channel')
|
||||
|
||||
|
||||
class TestMARChannels(FirefoxTestCase):
|
||||
class TestMARChannels(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestMARChannels, self).setUp()
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from firefox_puppeteer.errors import NoCertificateError
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestTabBar(FirefoxTestCase):
|
||||
class TestTabBar(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def tearDown(self):
|
||||
try:
|
||||
|
@ -114,7 +114,7 @@ class TestTabBar(FirefoxTestCase):
|
|||
tabbar.close_tab(tabbar.tabs[1])
|
||||
|
||||
|
||||
class TestTab(FirefoxTestCase):
|
||||
class TestTab(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def tearDown(self):
|
||||
try:
|
||||
|
|
|
@ -2,13 +2,13 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import expected, By, Wait
|
||||
from marionette_driver.errors import NoSuchElementException
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class TestNavBar(FirefoxTestCase):
|
||||
class TestNavBar(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestNavBar, self).setUp()
|
||||
|
@ -77,7 +77,7 @@ class TestNavBar(FirefoxTestCase):
|
|||
self.assertEqual(self.marionette.get_url(), self.browser.default_homepage)
|
||||
|
||||
|
||||
class TestLocationBar(FirefoxTestCase):
|
||||
class TestLocationBar(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestLocationBar, self).setUp()
|
||||
|
@ -133,7 +133,7 @@ class TestLocationBar(FirefoxTestCase):
|
|||
Wait(self.marionette).until(lambda mn: mn.get_url() == data_uri)
|
||||
|
||||
|
||||
class TestAutoCompleteResults(FirefoxTestCase):
|
||||
class TestAutoCompleteResults(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestAutoCompleteResults, self).setUp()
|
||||
|
@ -203,7 +203,7 @@ class TestAutoCompleteResults(FirefoxTestCase):
|
|||
self.autocomplete_results.close()
|
||||
|
||||
|
||||
class TestIdentityPopup(FirefoxTestCase):
|
||||
class TestIdentityPopup(PuppeteerMixin, MarionetteTestCase):
|
||||
def setUp(self):
|
||||
super(TestIdentityPopup, self).setUp()
|
||||
|
||||
|
|
|
@ -2,11 +2,12 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from firefox_puppeteer.ui.update_wizard import UpdateWizardDialog
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestUpdateWizard(FirefoxTestCase):
|
||||
class TestUpdateWizard(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestUpdateWizard, self).setUp()
|
||||
|
|
|
@ -2,10 +2,11 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestSanitize(FirefoxTestCase):
|
||||
class TestSanitize(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
super(TestSanitize, self).setUp()
|
||||
|
|
|
@ -2,16 +2,16 @@
|
|||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import firefox_puppeteer.errors as errors
|
||||
|
||||
from firefox_puppeteer import PuppeteerMixin
|
||||
from firefox_puppeteer.ui.windows import BaseWindow
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver import By, Wait
|
||||
from marionette_driver.errors import NoSuchWindowException
|
||||
|
||||
import firefox_puppeteer.errors as errors
|
||||
|
||||
from firefox_puppeteer.ui.windows import BaseWindow
|
||||
from firefox_ui_harness.testcases import FirefoxTestCase
|
||||
|
||||
|
||||
class BaseWindowTestCase(FirefoxTestCase):
|
||||
class BaseWindowTestCase(PuppeteerMixin, MarionetteTestCase):
|
||||
|
||||
def setUp(self):
|
||||
"""
|
||||
|
|
Загрузка…
Ссылка в новой задаче