test_empty_prefs_list.js (555B)
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 passing an empty list of pref names to the module. 8 */ 9 10 add_task(function () { 11 const PREFS_LIST = []; 12 13 startModule(PREFS_LIST); 14 15 Assert.throws( 16 getRegistryKey, 17 /NS_ERROR_FAILURE/, 18 "The registry key shouldn't have been created, so opening it should fail" 19 ); 20 });