mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-15 04:39:31 +00:00
Bug 1109183 - Fix imports of the marionette client and remove spurious entry from sys.path provided by mach. r=ahal
--HG-- extra : rebase_source : 1c6579dfd5cd44973a74b5c0f81b14fca6f170d4
This commit is contained in:
parent
d1e24656d3
commit
dc928c0e88
@ -1,14 +1,15 @@
|
||||
from marionette_test import MarionetteTestCase
|
||||
try:
|
||||
from by import By
|
||||
from errors import NoSuchElementException, StaleElementException
|
||||
# noinspection PyUnresolvedReferences
|
||||
from wait import Wait
|
||||
from marionette_test import MarionetteTestCase
|
||||
except ImportError:
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.errors import NoSuchElementException, StaleElementException
|
||||
# noinspection PyUnresolvedReferences
|
||||
from marionette_driver import Wait
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
@ -1,4 +1,4 @@
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import NoSuchElementException
|
||||
import threading
|
||||
import SimpleHTTPServer
|
||||
|
@ -49,7 +49,6 @@ SEARCH_PATHS = [
|
||||
'testing/web-platform',
|
||||
'testing/web-platform/harness',
|
||||
'testing/marionette/client',
|
||||
'testing/marionette/client/marionette',
|
||||
'testing/marionette/transport',
|
||||
'testing/marionette/driver',
|
||||
'testing/mozbase/mozcrash',
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.marionette import Actions
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.selection import SelectionManager
|
||||
from marionette_driver.gestures import long_press_without_contextmenu
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.marionette import Actions
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.selection import SelectionManager
|
||||
from marionette_driver.gestures import long_press_without_contextmenu
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.marionette import Actions
|
||||
from marionette_driver.selection import SelectionManager
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TouchCaretTest(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import (ElementNotAccessibleException,
|
||||
ElementNotVisibleException)
|
||||
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
from marionette_driver.errors import NoSuchElementException
|
||||
from marionette_driver.expected import element_present
|
||||
|
@ -14,7 +14,7 @@
|
||||
#limitations under the License.
|
||||
|
||||
from marionette_driver.application_cache import ApplicationCache
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class AppCacheTests(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import SessionNotCreatedException
|
||||
|
||||
class TestCapabilities(MarionetteTestCase):
|
||||
@ -80,4 +80,4 @@ class TestCapabilities(MarionetteTestCase):
|
||||
|
||||
# Start a new session just to make sure we leave the browser in the
|
||||
# same state it was before it started the test
|
||||
self.marionette.start_session()
|
||||
self.marionette.start_session()
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import InvalidElementStateException
|
||||
|
||||
class TestClear(MarionetteTestCase):
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.errors import NoSuchElementException, ElementNotVisibleException
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.marionette import Actions
|
||||
from marionette_driver.keys import Keys
|
||||
from marionette_driver.wait import Wait
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.by import By
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.errors import MoveTargetOutOfBoundsException
|
||||
from marionette_test import MarionetteTestCase, skip
|
||||
from marionette import MarionetteTestCase, skip
|
||||
|
||||
|
||||
class TestClickScrolling(MarionetteTestCase):
|
||||
|
@ -1,7 +1,7 @@
|
||||
import calendar
|
||||
import time
|
||||
import random
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class CookieTest(MarionetteTestCase):
|
||||
|
@ -1,5 +1,13 @@
|
||||
from marionette_test import parameterized, with_parameters, MetaParameterized, \
|
||||
MarionetteTestCase
|
||||
# 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 marionette.marionette_test import (
|
||||
parameterized,
|
||||
with_parameters,
|
||||
MetaParameterized,
|
||||
MarionetteTestCase
|
||||
)
|
||||
|
||||
class Parameterizable(object):
|
||||
__metaclass__ = MetaParameterized
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from datetime import datetime
|
||||
from marionette_driver.date_time_value import DateTimeValue
|
||||
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestState(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestStateChrome(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import MarionetteException
|
||||
|
||||
class testElementTouch(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestElementSize(MarionetteTestCase):
|
||||
def testShouldReturnTheSizeOfALink(self):
|
||||
|
@ -2,9 +2,8 @@
|
||||
# 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_test import MarionetteTestCase
|
||||
from marionette_driver.errors import (JavascriptException,
|
||||
MarionetteException)
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import MarionetteException
|
||||
|
||||
|
||||
class TestEmulatorContent(MarionetteTestCase):
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
import sys
|
||||
|
||||
import marionette_test
|
||||
from marionette import marionette_test
|
||||
from marionette_driver import errors
|
||||
from marionette_driver.errors import ErrorCodes
|
||||
|
||||
|
@ -2,11 +2,10 @@
|
||||
# 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_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import ( JavascriptException,
|
||||
MarionetteException,
|
||||
ScriptTimeoutException )
|
||||
import time
|
||||
|
||||
|
||||
class TestExecuteAsyncContent(MarionetteTestCase):
|
||||
|
@ -2,9 +2,8 @@
|
||||
# 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_test import MarionetteTestCase, skip_if_b2g
|
||||
from marionette_driver.errors import (JavascriptException,
|
||||
MarionetteException,
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import (MarionetteException,
|
||||
ScriptTimeoutException)
|
||||
|
||||
class TestExecuteIsolationContent(MarionetteTestCase):
|
||||
|
@ -5,8 +5,8 @@
|
||||
import urllib
|
||||
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.errors import JavascriptException, MarionetteException
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette_driver.errors import JavascriptException
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
def inline(doc):
|
||||
return "data:text/html;charset=utf-8,%s" % urllib.quote(doc)
|
||||
|
@ -7,7 +7,7 @@ import urllib
|
||||
from marionette_driver import expected
|
||||
from marionette_driver.by import By
|
||||
|
||||
import marionette_test
|
||||
from marionette import marionette_test
|
||||
|
||||
|
||||
def inline(doc):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestFail(MarionetteTestCase):
|
||||
def test_fails(self):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.marionette import HTMLElement
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.errors import NoSuchElementException, InvalidSelectorException
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.marionette import HTMLElement
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.errors import NoSuchElementException
|
||||
|
@ -2,8 +2,8 @@
|
||||
# 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_test import MarionetteTestCase
|
||||
from gestures import smooth_scroll, pinch
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette.gestures import smooth_scroll
|
||||
|
||||
class testGestures(MarionetteTestCase):
|
||||
check_in_viewport = """
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestGetActiveFrameOOP(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestGetAttribute(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestGetAttributeChrome(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import NoSuchElementException
|
||||
|
||||
class TestImplicitWaits(MarionetteTestCase):
|
||||
|
@ -3,7 +3,7 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import os
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import JavascriptException
|
||||
|
||||
class TestImportScript(MarionetteTestCase):
|
||||
|
@ -4,7 +4,7 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import os
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestImportScriptContent(MarionetteTestCase):
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
# 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_test import (MarionetteTestCase,
|
||||
skip_if_b2g,
|
||||
skip_if_e10s)
|
||||
from marionette.marionette_test import (MarionetteTestCase,
|
||||
skip_if_b2g,
|
||||
skip_if_e10s)
|
||||
from marionette_driver.keys import Keys
|
||||
from marionette_driver.marionette import Actions
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
# 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 os
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestLog(MarionetteTestCase):
|
||||
def test_log_basic(self):
|
||||
|
@ -3,7 +3,7 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from marionette_driver import errors
|
||||
import marionette_test
|
||||
from marionette import marionette_test
|
||||
|
||||
|
||||
class TestHandleError(marionette_test.MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase, skip_if_e10s
|
||||
from marionette.marionette_test import MarionetteTestCase, skip_if_e10s
|
||||
from marionette_driver.errors import NoAlertPresentException, ElementNotVisibleException
|
||||
from marionette_driver.marionette import Alert
|
||||
from marionette_driver.wait import Wait
|
||||
|
@ -2,8 +2,8 @@
|
||||
# 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_test import MarionetteTestCase
|
||||
from marionette import MultiActions, Actions
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette.marionette import MultiActions, Actions
|
||||
|
||||
class testMultiFinger(MarionetteTestCase):
|
||||
def test_move_element(self):
|
||||
|
@ -2,7 +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_test import MarionetteTestCase, skip_if_b2g, skip_if_e10s
|
||||
from marionette.marionette_test import (
|
||||
MarionetteTestCase,
|
||||
skip_if_b2g,
|
||||
skip_if_e10s
|
||||
)
|
||||
from marionette_driver.errors import MarionetteException, TimeoutException
|
||||
|
||||
class TestNavigate(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase, skip_if_b2g
|
||||
from marionette.marionette_test import MarionetteTestCase, skip_if_b2g
|
||||
|
||||
class TestPageSource(MarionetteTestCase):
|
||||
def testShouldReturnTheSourceOfAPage(self):
|
||||
|
@ -1,4 +1,4 @@
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestPosition(MarionetteTestCase):
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
import os
|
||||
from marionette_driver.errors import JavascriptException
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestLog(MarionetteTestCase):
|
||||
def setUp(self):
|
||||
|
@ -13,7 +13,7 @@
|
||||
#See the License for the specific language governing permissions and
|
||||
#limitations under the License.
|
||||
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class RenderedElementTests(MarionetteTestCase):
|
||||
|
@ -2,8 +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/.
|
||||
|
||||
import unittest
|
||||
from marionette_test import MarionetteTestCase, expectedFailure, skip
|
||||
from marionette import MarionetteTestCase, expectedFailure, skip
|
||||
|
||||
|
||||
class TestReport(MarionetteTestCase):
|
||||
|
@ -1,8 +1,7 @@
|
||||
# Any copyright is dedicated to the Public Domain.
|
||||
# http://creativecommons.org/publicdomain/zero/1.0/
|
||||
|
||||
from marionette_test import MarionetteTestCase
|
||||
import unittest
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestRunJSTest(MarionetteTestCase):
|
||||
def test_basic(self):
|
||||
|
@ -5,7 +5,7 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from marionette_driver.errors import MarionetteException
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from mozrunner.devices.emulator_screen import EmulatorScreen
|
||||
|
||||
default_orientation = "portrait-primary"
|
||||
|
@ -1,7 +1,7 @@
|
||||
import base64
|
||||
import imghdr
|
||||
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
RED_ELEMENT_BASE64 = 'iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVRoge3PsQ0AIAzAsI78fzBwBhHykD2ePev80LweAAGJB1ILpBZILZBaILVAaoHUAqkFUgukFkgtkFogtUBqgdQCqQVSC6QWSC2QWiC1QGp9A7ma+7nyXgOpzQAAAABJRU5ErkJggg=='
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestSelected(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestSelectedChrome(MarionetteTestCase):
|
||||
|
@ -2,9 +2,9 @@
|
||||
# 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 marionette_test
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestSession(marionette_test.MarionetteTestCase):
|
||||
class TestSession(MarionetteTestCase):
|
||||
def setUp(self):
|
||||
super(TestSession, self).setUp()
|
||||
self.marionette.delete_session()
|
||||
@ -41,4 +41,4 @@ class TestSession(marionette_test.MarionetteTestCase):
|
||||
caps = self.marionette.start_session(session_id="ILoveCheese")
|
||||
|
||||
self.assertEqual(self.marionette.session_id, "ILoveCheese")
|
||||
self.assertTrue(isinstance(self.marionette.session_id, unicode))
|
||||
self.assertTrue(isinstance(self.marionette.session_id, unicode))
|
||||
|
@ -3,7 +3,7 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
from marionette_driver.errors import MarionetteException
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestSetWindowSize(MarionetteTestCase):
|
||||
def setUp(self):
|
||||
|
@ -2,10 +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 marionette_test import MarionetteTestCase
|
||||
from marionette_driver.errors import (JavascriptException,
|
||||
MarionetteException,
|
||||
ScriptTimeoutException)
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class SimpletestSanityTest(MarionetteTestCase):
|
||||
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.marionette import Actions
|
||||
from marionette_driver.errors import MarionetteException
|
||||
#add this directory to the path
|
||||
|
@ -1,5 +1,4 @@
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette_driver.marionette import Actions
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import MarionetteException
|
||||
#add this directory to the path
|
||||
import os
|
||||
|
@ -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 marionette_test import MarionetteTestCase, SkipTest
|
||||
from marionette import MarionetteTestCase, SkipTest
|
||||
|
||||
class TestSetUpSkipped(MarionetteTestCase):
|
||||
|
||||
|
@ -2,8 +2,8 @@
|
||||
# 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_test import MarionetteTestCase
|
||||
from marionette_driver.errors import JavascriptException, MarionetteException
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestSpecialPowersContent(MarionetteTestCase):
|
||||
|
||||
|
@ -7,7 +7,7 @@ import time
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.errors import NoSuchElementException
|
||||
from marionette_driver.wait import Wait
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestSubmit(MarionetteTestCase):
|
||||
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import (JavascriptException,
|
||||
NoSuchFrameException)
|
||||
|
||||
|
@ -2,9 +2,9 @@
|
||||
# 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_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import JavascriptException
|
||||
from marionette_driver.by import By
|
||||
|
||||
|
||||
class TestSwitchFrameChrome(MarionetteTestCase):
|
||||
def setUp(self):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TestSwitchRemoteFrame(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.keys import Keys
|
||||
|
||||
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
''' Disabled in bug 896043 and when working on Chrome code re-enable for bug 896046
|
||||
|
@ -2,11 +2,9 @@
|
||||
# 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 os
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.marionette import HTMLElement
|
||||
from marionette_driver.errors import (NoSuchElementException,
|
||||
JavascriptException,
|
||||
MarionetteException,
|
||||
ScriptTimeoutException)
|
||||
|
||||
|
@ -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 marionette_test import MarionetteTestCase, skip_if_b2g
|
||||
from marionette.marionette_test import MarionetteTestCase, skip_if_b2g
|
||||
from marionette_driver.keys import Keys
|
||||
from marionette_driver.errors import ElementNotVisibleException
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestVisibility(MarionetteTestCase):
|
||||
|
||||
|
@ -9,7 +9,7 @@ from marionette_driver import errors
|
||||
from marionette_driver import wait
|
||||
from marionette_driver.wait import Wait
|
||||
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
|
||||
class TickingClock(object):
|
||||
|
@ -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 marionette_test import MarionetteTestCase, skip_if_e10s
|
||||
from marionette.marionette_test import MarionetteTestCase, skip_if_e10s
|
||||
from marionette_driver.keys import Keys
|
||||
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import time
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestSwitchWindow(MarionetteTestCase):
|
||||
def open_new_window(self):
|
||||
|
@ -12,7 +12,7 @@
|
||||
#See the License for the specific language governing permissions and
|
||||
#limitations under the License.
|
||||
|
||||
from marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import MarionetteException
|
||||
|
||||
class TestWindowPosition(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
from marionette_driver.by import By
|
||||
from marionette_driver.errors import NoSuchElementException
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
#TODO use @skip_if_b2g when Bug 875921 is fixed
|
||||
class TestTitleChrome(MarionetteTestCase):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
|
||||
class TestWindowTypeChrome(MarionetteTestCase):
|
||||
def setUp(self):
|
||||
|
@ -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 marionette_test import MarionetteTestCase
|
||||
from marionette import MarionetteTestCase
|
||||
from marionette_driver.errors import MarionetteException
|
||||
|
||||
|
||||
|
@ -38,20 +38,7 @@ commandline.add_logging_group(_parser)
|
||||
def run_marionette(tests, b2g_path=None, emulator=None, testtype=None,
|
||||
address=None, binary=None, topsrcdir=None, **kwargs):
|
||||
|
||||
# Import the harness directly and under a different name here to avoid
|
||||
# "marionette" being importable from two locations when "testing/marionette/client"
|
||||
# is on sys.path.
|
||||
# See bug 1050511 and bug 1114474. This needs to be removed with the
|
||||
# resolution of bug 1109183.
|
||||
clientdir = os.path.join(topsrcdir, 'testing/marionette/client')
|
||||
if clientdir in sys.path:
|
||||
sys.path.remove(clientdir)
|
||||
path = os.path.join(topsrcdir, 'testing/marionette/client/marionette/runtests.py')
|
||||
with open(path, 'r') as fh:
|
||||
imp.load_module('marionetteharness', fh, path,
|
||||
('.py', 'r', imp.PY_SOURCE))
|
||||
|
||||
from marionetteharness import (
|
||||
from marionette.runtests import (
|
||||
MarionetteTestRunner,
|
||||
BaseMarionetteOptions,
|
||||
startTestRunner
|
||||
|
Loading…
x
Reference in New Issue
Block a user