browser_webchannel-enable-menu-button.js (600B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 "use strict"; 6 7 add_task(async function test() { 8 info("Test the WebChannel mechanism works for turning on the menu button."); 9 await makeSureProfilerPopupIsDisabled(); 10 11 await withWebChannelTestDocument(async () => { 12 await waitForTabTitle("WebChannel Page Ready"); 13 await waitForProfilerMenuButton(); 14 ok(true, "The profiler menu button was enabled by the WebChannel."); 15 }); 16 });