tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

test_quicksuggest_migrate_v4.js (777B)


      1 /* This Source Code Form is subject to the terms of the Mozilla Public
      2 * License, v. 2.0. If a copy of the MPL was not distributed with this
      3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 // Tests Suggest prefs migration from version 3 to 4.
      6 
      7 "use strict";
      8 
      9 const TO_VERSION = 4;
     10 
     11 add_setup(async () => {
     12  await setUpMigrateTest();
     13 });
     14 
     15 // No user-branch values set
     16 add_task(async function () {
     17  await doMigrateTest({
     18    toVersion: TO_VERSION,
     19  });
     20 });
     21 
     22 // Settings UI set to full
     23 add_task(async function () {
     24  await doMigrateTest({
     25    toVersion: TO_VERSION,
     26    preMigrationUserPrefs: {
     27      "quicksuggest.settingsUi": QuickSuggest.SETTINGS_UI.FULL,
     28    },
     29    expectedPostMigrationUserPrefs: {
     30      "quicksuggest.settingsUi": null,
     31    },
     32  });
     33 });