/* 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/. */
let gAccount, gFolders, gMessage, gExpectedAttachments;
const { mailTestUtils } = ChromeUtils.import(
"resource://testing-common/mailnews/MailTestUtils.jsm"
);
const URL_BASE =
"http://mochi.test:8888/browser/comm/mail/components/extensions/test/browser/data";
var tabmail = document.getElementById("tabmail");
var about3Pane = tabmail.currentAbout3Pane;
var messagePane =
about3Pane.messageBrowser.contentWindow.getMessagePaneBrowser();
/**
* Right-click on something and wait for the context menu to appear.
* For elements in the parent process only.
*
* @param {Element} menu - The