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:
Chris Manchester 2015-03-03 17:37:19 -08:00
parent d1e24656d3
commit dc928c0e88
78 changed files with 104 additions and 116 deletions

View File

@ -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

View File

@ -1,4 +1,4 @@
from marionette_test import MarionetteTestCase
from marionette import MarionetteTestCase
from marionette_driver.errors import NoSuchElementException
import threading
import SimpleHTTPServer

View File

@ -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',

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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)

View File

@ -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

View File

@ -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):

View File

@ -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()

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -1,7 +1,7 @@
import calendar
import time
import random
from marionette_test import MarionetteTestCase
from marionette import MarionetteTestCase
class CookieTest(MarionetteTestCase):

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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 = """

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -1,4 +1,4 @@
from marionette_test import MarionetteTestCase
from marionette import MarionetteTestCase
class TestPosition(MarionetteTestCase):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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"

View File

@ -1,7 +1,7 @@
import base64
import imghdr
from marionette_test import MarionetteTestCase
from marionette import MarionetteTestCase
RED_ELEMENT_BASE64 = 'iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAAAVUlEQVRoge3PsQ0AIAzAsI78fzBwBhHykD2ePev80LweAAGJB1ILpBZILZBaILVAaoHUAqkFUgukFkgtkFogtUBqgdQCqQVSC6QWSC2QWiC1QGp9A7ma+7nyXgOpzQAAAABJRU5ErkJggg=='

View File

@ -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):

View File

@ -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):

View File

@ -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))

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -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):

View File

@ -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)

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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

View File

@ -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)

View File

@ -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

View File

@ -1,4 +1,4 @@
from marionette_test import MarionetteTestCase
from marionette import MarionetteTestCase
class TestVisibility(MarionetteTestCase):

View File

@ -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):

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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):

View File

@ -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):

View File

@ -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

View File

@ -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