Bug 968709 - Add a marionette test case to Bluetooth set to make sure the URL of Marionette client is correct. r=echou, f=vyang
authorJamin Liu <jaliu@mozilla.com>
Fri, 06 Jun 2014 11:38:24 +0800
changeset 207419 5f7e58de5d56ead8211d924f88d3b81141ba5134
parent 207418 d7e0796a105dba4d1c2a3ce71c4a7f74049e961a
child 207420 8d2cc13871197422c0a83182e8bc76e3228a5c8a
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersechou
bugs968709
milestone32.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 968709 - Add a marionette test case to Bluetooth set to make sure the URL of Marionette client is correct. r=echou, f=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.
dom/bluetooth/tests/marionette/manifest.ini
dom/bluetooth/tests/marionette/test_navigate_to_default_url.py
--- a/dom/bluetooth/tests/marionette/manifest.ini
+++ b/dom/bluetooth/tests/marionette/manifest.ini
@@ -1,10 +1,11 @@
 [DEFAULT]
 b2g = true
 browser = false
 qemu = true
 
+[test_navigate_to_default_url.py]
 [test_dom_BluetoothManager_enabled.js]
 [test_dom_BluetoothManager_adapteradded.js]
 [test_dom_BluetoothAdapter_setters.js]
 [test_dom_BluetoothAdapter_getters.js]
 [test_dom_BluetoothAdapter_discovery.js]
new file mode 100644
--- /dev/null
+++ b/dom/bluetooth/tests/marionette/test_navigate_to_default_url.py
@@ -0,0 +1,12 @@
+# 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 test_navigate_to_default_url(self):
+        try:
+            self.marionette.navigate("app://system.gaiamobile.org/index.html")
+        except:
+            self.assertTrue(Flase, "Can not navigate to system app.")