mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
06b1c291b8
Few marionette tests in unit-test set may navigate to specific URL and wouldn't restore the URL of marionette client when the tests end. Navigate the URL to default value before running Bluetooth test to make sure the correctness of test.
19 lines
783 B
Python
19 lines
783 B
Python
# 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_test import MarionetteTestCase
|
|
|
|
class testNavigateToDefault(MarionetteTestCase):
|
|
def setUp(self):
|
|
MarionetteTestCase.setUp(self)
|
|
# Sets an appropriate timeout for this test.
|
|
# P.S. The timeout of next test wouldn't be affected by this statement.
|
|
self.marionette.timeouts(self.marionette.TIMEOUT_PAGE, 90000)
|
|
|
|
def test_navigate_to_default_url(self):
|
|
try:
|
|
self.marionette.navigate("app://system.gaiamobile.org/index.html")
|
|
except:
|
|
self.assertTrue(False, "Can not navigate to system app.")
|