Bug 1373913 - Skip the default browser test on Thunderbird. r?gfritzsche draft
authorAlessio Placitelli <alessio.placitelli@gmail.com>
Mon, 19 Jun 2017 09:36:09 +0200
changeset 596600 298d59a1ac149cdc653f7e3d90e2c5117b1358ad
parent 596219 95543bdc59bd038a3d5d084b85a4fec493c349ee
child 634008 a8fcbb166a23c3f242c84849cd8d757e3502e831
push id64692
push useralessio.placitelli@gmail.com
push dateMon, 19 Jun 2017 14:20:04 +0000
reviewersgfritzsche
bugs1373913
milestone56.0a1
Bug 1373913 - Skip the default browser test on Thunderbird. r?gfritzsche MozReview-Commit-ID: 41BfL50DLpL
toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js
--- a/toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js
+++ b/toolkit/components/telemetry/tests/unit/test_TelemetryEnvironment.js
@@ -1563,17 +1563,21 @@ add_task(async function test_defaultSear
 
   // ... but that if a cohort identifier is set, we send it.
   Services.prefs.setCharPref("browser.search.cohort", "testcohort");
   Services.obs.notifyObservers(null, "browser-search-service", "init-complete");
   data = TelemetryEnvironment.currentEnvironment;
   Assert.equal(data.settings.searchCohort, "testcohort");
 });
 
-add_task(async function test_delayed_defaultBrowser() {
+add_task({ skip_if: () => AppConstants.MOZ_APP_NAME == "thunderbird" },
+         async function test_delayed_defaultBrowser() {
+  // Skip this test on Thunderbird since it is not a browser, so it cannot
+  // be the default browser.
+
   // Make sure we don't have anything already cached for this test.
   await TelemetryEnvironment.testCleanRestart().onInitialized();
 
   let environmentData = TelemetryEnvironment.currentEnvironment;
   checkEnvironmentData(environmentData);
   Assert.equal(environmentData.settings.isDefaultBrowser, null,
                "isDefaultBrowser must be null before the session is restored.");