Page MenuHome GnuPG

prefs-test.js
No OneTemporary

prefs-test.js

/*global do_load_module: false, do_get_file: false, do_get_cwd: false, testing: false, test: false, Assert: false, resetting: false, JSUnit: false, do_test_pending: false, do_test_finished: false, component: false, Cc: false, Ci: false */
/*jshint -W097 */
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
"use strict";
do_load_module("file://" + do_get_cwd().path + "/testHelper.js");
testing("prefs.jsm"); /*global EnigmailPrefs: false */
test(function shouldSetGetPreference() {
const prefName = "mypref";
EnigmailPrefs.setPref(prefName, "yourpref");
Assert.equal("yourpref", EnigmailPrefs.getPref(prefName));
});

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 19, 9:03 PM (21 h, 51 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
da/0f/987f0f017c17976d12843974c427

Event Timeline