"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "browser/components/doh/test/browser/browser_trrSelection_disable.js" between
firefox-90.0.1.source.tar.xz and firefox-90.0.2.source.tar.xz

About: Firefox is Mozilla’s standalone Web browser. Source code.

browser_trrSelection_disable.js  (firefox-90.0.1.source.tar.xz):browser_trrSelection_disable.js  (firefox-90.0.2.source.tar.xz)
/* Any copyright is dedicated to the Public Domain. /* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ * http://creativecommons.org/publicdomain/zero/1.0/
*/ */
"use strict"; "use strict";
add_task(setup); add_task(setup);
add_task(async function testTrrSelectionDisable() { add_task(async function testTrrSelectionDisable() {
// Set up a passing environment and enable DoH. // Turn off TRR Selection.
let configFlushed = DoHTestUtils.waitForConfigFlush();
Preferences.set(prefs.TRR_SELECT_ENABLED_PREF, false); Preferences.set(prefs.TRR_SELECT_ENABLED_PREF, false);
await configFlushed;
// Set up a passing environment and enable DoH.
setPassingHeuristics(); setPassingHeuristics();
let promise = waitForDoorhanger(); let promise = waitForDoorhanger();
Preferences.set(prefs.ENABLED_PREF, true); Preferences.set(prefs.ENABLED_PREF, true);
await BrowserTestUtils.waitForCondition(() => { await BrowserTestUtils.waitForCondition(() => {
return Preferences.get(prefs.BREADCRUMB_PREF); return Preferences.get(prefs.BREADCRUMB_PREF);
}); });
is(Preferences.get(prefs.BREADCRUMB_PREF), true, "Breadcrumb saved."); is(Preferences.get(prefs.BREADCRUMB_PREF), true, "Breadcrumb saved.");
is( is(
Preferences.get(prefs.TRR_SELECT_DRY_RUN_RESULT_PREF), Preferences.get(prefs.TRR_SELECT_DRY_RUN_RESULT_PREF),
undefined, undefined,
 End of changes. 2 change blocks. 
1 lines changed or deleted 5 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)