Bug 1642723 - Also check doh-rollout.uri in browser_trrSelection_disable.js test. r=valentin a=jcristau
authorNihanth Subramanya <nhnt11@gmail.com>
Thu, 04 Jun 2020 15:46:03 +0000
changeset 596973 a496c7db9cee4c08bb7dd8b5694069b58b968e3c
parent 596972 a6f31328e670a91cc4de719c6135b89016bf90c8
child 596974 0c5ac2a91d0305523a9a5442be5d4c1c6bf279ab
push id13219
push userryanvm@gmail.com
push dateThu, 04 Jun 2020 18:48:14 +0000
treeherdermozilla-beta@a496c7db9cee [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersvalentin, jcristau
bugs1642723
milestone78.0
Bug 1642723 - Also check doh-rollout.uri in browser_trrSelection_disable.js test. r=valentin a=jcristau Depends on D78126 Differential Revision: https://phabricator.services.mozilla.com/D78127
browser/extensions/doh-rollout/test/browser/browser_trrSelection_disable.js
--- a/browser/extensions/doh-rollout/test/browser/browser_trrSelection_disable.js
+++ b/browser/extensions/doh-rollout/test/browser/browser_trrSelection_disable.js
@@ -12,16 +12,21 @@ add_task(async function testTrrSelection
     return Preferences.get(prefs.DOH_SELF_ENABLED_PREF);
   });
   is(Preferences.get(prefs.DOH_SELF_ENABLED_PREF), true, "Breadcrumb saved.");
   is(
     Preferences.get(prefs.DOH_TRR_SELECT_DRY_RUN_RESULT_PREF),
     undefined,
     "TRR selection dry run not performed."
   );
+  is(
+    Preferences.get(prefs.DOH_TRR_SELECT_URI_PREF),
+    undefined,
+    "doh-rollout.uri remained unset."
+  );
   ensureNoTRRSelectionTelemetry();
 
   let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser, EXAMPLE_URL);
   let panel = await promise;
   is(
     Preferences.get(prefs.DOH_DOORHANGER_SHOWN_PREF),
     undefined,
     "Doorhanger shown pref undefined before user interaction."
@@ -60,11 +65,16 @@ add_task(async function testTrrSelection
   // Restart the add-on for good measure.
   await restartAddon();
   ensureNoTRRSelectionTelemetry();
   is(
     Preferences.get(prefs.DOH_TRR_SELECT_DRY_RUN_RESULT_PREF),
     undefined,
     "TRR selection dry run not performed."
   );
+  is(
+    Preferences.get(prefs.DOH_TRR_SELECT_URI_PREF),
+    undefined,
+    "doh-rollout.uri remained unset."
+  );
   await ensureNoTRRModeChange(2);
   await checkHeuristicsTelemetry("enable_doh", "startup");
 });