gecko/dom/bluetooth/tests/marionette/test_navigate_to_default_url.py
Jamin Liu 06b1c291b8 Bug 968709 - Add a marionette test case to Bluetooth set to make sure the URL of Marionette client is correct. r=vyang
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.
2014-06-18 00:20:00 -04:00

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.")