test_nonbool_pref.js (605B)
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 prefs of types other than bool are not reflected. 8 */ 9 10 add_task(function () { 11 const PREFS_LIST = ["installer.int", "installer.string"]; 12 13 Services.prefs.setIntPref("installer.int", 12); 14 Services.prefs.setStringPref("installer.string", "I'm a string"); 15 16 startModule(PREFS_LIST); 17 18 verifyReflectedPrefs(PREFS_LIST); 19 });