Skip to content
This repository has been archived by the owner on Jan 20, 2022. It is now read-only.

Commit

Permalink
Bug 1217046 - Move testcases from firefox_ui_harness into firefox_pup…
Browse files Browse the repository at this point in the history
…peteer and firefox_ui_tests. r=whimboo

(cherry picked from commit 50527c6)
  • Loading branch information
ujjwalwahi authored and whimboo committed Oct 30, 2015
1 parent 9cac723 commit afea285
Show file tree
Hide file tree
Showing 41 changed files with 42 additions and 42 deletions.
5 changes: 5 additions & 0 deletions firefox_puppeteer/testcases/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# 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 base import FirefoxTestCase
File renamed without changes.
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_about_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from marionette_driver import By

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestAboutWindow(FirefoxTestCase):
Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_appinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import mozversion
from marionette_driver.errors import MarionetteException

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestAppInfo(FirefoxTestCase):
Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_l10n.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from marionette_driver.errors import MarionetteException

from firefox_puppeteer.api.l10n import L10n
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestL10n(FirefoxTestCase):
Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_menubar.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from marionette_driver.errors import NoSuchElementException

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


@unittest.skip('Bug 1121710 - Fix MenuBar class for correct handling of menus')
Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_page_info_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from marionette_driver import By
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestPageInfoWindow(FirefoxTestCase):
Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_places.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from marionette_driver import By, Wait

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestPlaces(FirefoxTestCase):
Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_prefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from marionette_driver.errors import MarionetteException

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class testPreferences(FirefoxTestCase):
Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_security.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 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 import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase

from firefox_puppeteer.errors import NoCertificateError

Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_software_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import os

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase

from firefox_puppeteer.api.software_update import SoftwareUpdate

Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_tabbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 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 import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase

from firefox_puppeteer.errors import NoCertificateError

Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_toolbars.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from marionette_driver.errors import NoSuchElementException

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestNavBar(FirefoxTestCase):
Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_update_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from firefox_puppeteer.ui.update_wizard import UpdateWizardDialog

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestUpdateWizard(FirefoxTestCase):
Expand Down
2 changes: 1 addition & 1 deletion firefox_puppeteer/tests/test_windows.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

import firefox_puppeteer.errors as errors

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase
from firefox_puppeteer.ui.windows import BaseWindow


Expand Down
4 changes: 0 additions & 4 deletions firefox_ui_harness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,3 @@

from cli_update import cli_update
from runtests import cli

from testcases import (FirefoxTestCase,
UpdateTestCase,
)
2 changes: 1 addition & 1 deletion firefox_ui_harness/runners/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import mozinfo
from marionette import BaseMarionetteTestRunner

from firefox_ui_harness.testcases import FirefoxTestCase
import firefox_ui_tests
from firefox_puppeteer.testcases import FirefoxTestCase


DEFAULT_PREFS = {
Expand Down
2 changes: 1 addition & 1 deletion firefox_ui_harness/runners/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import mozinstall

from base import FirefoxUITestRunner
from firefox_ui_harness.testcases import UpdateTestCase
from firefox_ui_tests.testcases import UpdateTestCase

import firefox_ui_tests

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from marionette_driver import Wait

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestBrowserWindowShortcuts(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from marionette_driver import Wait

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestAccessLocationBar(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from marionette_driver import Wait

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestEscapeAutocomplete(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from marionette_driver import Wait

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestFaviconInAutocomplete(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from marionette_driver import By, Wait

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestStarInAutocomplete(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from marionette_driver import By, Wait
from marionette.marionette_test import skip_if_e10s

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase

from firefox_puppeteer.ui.browser.window import BrowserWindow

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from marionette_driver import Wait

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestDVCertificate(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from marionette_driver import Wait

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestEVCertificate(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from marionette_driver import Wait

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestMixedContentPage(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from marionette_driver import By, Wait

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestMixedScriptContentBlocking(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from marionette_driver import expected, Wait

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestNoCertificate(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from marionette_driver import By, expected, Wait

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestSafeBrowsingNotificationBar(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from marionette_driver import By, expected, Wait

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestSafeBrowsingWarningPages(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from marionette_driver import By, Wait
from marionette_driver.errors import MarionetteException

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestSecurityNotification(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from marionette_driver import By
from marionette_driver.errors import MarionetteException

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestSSLDisabledErrorPage(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from marionette.marionette_test import skip_if_e10s

from firefox_ui_harness.decorators import skip_under_xvfb
from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestSSLStatusAfterRestart(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from marionette_driver.errors import NoAlertPresentException
from marionette_driver.marionette import Alert

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestSubmitUnencryptedInfoWarning(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from marionette_driver import By
from marionette_driver.errors import MarionetteException

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestUnknownIssuer(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from marionette_driver import By, Wait
from marionette_driver.errors import MarionetteException

from firefox_ui_harness import FirefoxTestCase
from firefox_puppeteer.testcases import FirefoxTestCase


class TestUntrustedConnectionErrorPage(FirefoxTestCase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@
# 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 base import FirefoxTestCase
from update import UpdateTestCase
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import pprint

from firefox_puppeteer.api.software_update import SoftwareUpdate
from firefox_puppeteer.testcases import FirefoxTestCase
from firefox_puppeteer.ui.update_wizard import UpdateWizardDialog
from firefox_ui_harness.testcases import FirefoxTestCase


class UpdateTestCase(FirefoxTestCase):
Expand Down
2 changes: 1 addition & 1 deletion firefox_ui_tests/update/direct/test_direct_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 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 import UpdateTestCase
from firefox_ui_tests.testcases import UpdateTestCase


class TestDirectUpdate(UpdateTestCase):
Expand Down
2 changes: 1 addition & 1 deletion firefox_ui_tests/update/fallback/test_fallback_update.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# 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 import UpdateTestCase
from firefox_ui_tests.testcases import UpdateTestCase


class TestFallbackUpdate(UpdateTestCase):
Expand Down

0 comments on commit afea285

Please sign in to comment.