tor-browser

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

test_pref_values.js (608B)


      1 /* -*- indent-tabs-mode: nil; js-indent-level: 2 -*- */
      2 /* This Source Code Form is subject to the terms of the Mozilla Public
      3 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
      4 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      5 
      6 /**
      7 * Test that pref values are reflected correctly.
      8 */
      9 
     10 add_task(function () {
     11  const PREFS_LIST = ["installer.true.value", "installer.false.value"];
     12 
     13  Services.prefs.setBoolPref("installer.true.value", true);
     14  Services.prefs.setBoolPref("installer.false.value", false);
     15 
     16  startModule(PREFS_LIST);
     17 
     18  verifyReflectedPrefs(PREFS_LIST);
     19 });