Page MenuHome GnuPG

enigmailMsgComposeOverlay-test.js
No OneTemporary

enigmailMsgComposeOverlay-test.js

/* global Enigmail: false, Assert: false, do_load_module: false, trustAllKeys_test: false, JSUnit: false */
/*
* 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/.
*/
var window;
var document;
function trustAllKeys_test() {
// test functionality of trustAllKeys
Enigmail.msg.trustAllKeys = true;
Enigmail.msg.tempTrustAllKeys();
Assert.equal(Enigmail.msg.trustAllKeys, false, "check trustAllKeys is false");
Enigmail.msg.tempTrustAllKeys();
Assert.equal(Enigmail.msg.trustAllKeys, true, "check trustAllKeys is true");
}
function run_test() {
window = JSUnit.createStubWindow();
window.document = JSUnit.createDOMDocument();
document = window.document;
do_load_module("chrome://enigmail/content/enigmailMsgComposeOverlay.js");
trustAllKeys_test();
}

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 7, 5:31 PM (1 d, 3 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c5/c3/661088904e0c2daaef8f17562817

Event Timeline