Bug 1330282 - Fix test_get_pref_value_type() for Fennec. r=maja_zf, a=test-only
authorHenrik Skupin <mail@hskupin.info>
Wed, 11 Jan 2017 12:42:02 +0100
changeset 350207 58c9ae2f0faf7e459ca74d8563c565ae5ef28c75
parent 350206 36f85907a16e97144c904396c79511d458557227
child 350208 9160ce16aa646ad59b53006e215cefd1e451a2dd
push id10573
push userryanvm@gmail.com
push dateThu, 12 Jan 2017 20:34:28 +0000
treeherdermozilla-aurora@98ecf719163d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmaja_zf, test-only
bugs1330282
milestone52.0a2
Bug 1330282 - Fix test_get_pref_value_type() for Fennec. r=maja_zf, a=test-only The preference "browser.startup.homepage" is only used for Firefox, so the test fails for Fennec. By using "browser.menu.showCharacterEncoding" which is used in both Firefox and Fennec the test is passing. MozReview-Commit-ID: 3PrPAgtU60u
testing/marionette/harness/marionette_harness/tests/unit/test_prefs.py
--- a/testing/marionette/harness/marionette_harness/tests/unit/test_prefs.py
+++ b/testing/marionette/harness/marionette_harness/tests/unit/test_prefs.py
@@ -71,18 +71,18 @@ class TestPreferences(MarionetteTestCase
         self.assertEqual(self.marionette.get_pref(pref_default, default_branch=True),
                          "default_value")
 
         self.marionette.clear_pref(pref_default)
         self.assertEqual(self.marionette.get_pref(pref_default), "default_value")
 
     def test_get_pref_value_type(self):
         # Without a given value type the properties URL will be returned only
-        pref_complex = "browser.startup.homepage"
-        properties_file = "chrome://branding/locale/browserconfig.properties"
+        pref_complex = "browser.menu.showCharacterEncoding"
+        properties_file = "chrome://browser/locale/browser.properties"
         self.assertEqual(self.marionette.get_pref(pref_complex, default_branch=True),
                          properties_file)
 
         # Otherwise the property named like the pref will be translated
         value = self.marionette.get_pref(pref_complex, default_branch=True,
                                          value_type="nsIPrefLocalizedString")
         self.assertNotEqual(value, properties_file)