browser_customizemode_lwthemes.js (929B)
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 () { 8 await startCustomizing(); 9 // Find the footer buttons to test. 10 let manageLink = document.querySelector("#customization-lwtheme-link"); 11 12 let waitForNewTab = BrowserTestUtils.waitForNewTab(gBrowser, "about:addons"); 13 manageLink.click(); 14 let addonsTab = await waitForNewTab; 15 16 is(gBrowser.currentURI.spec, "about:addons", "Manage opened about:addons"); 17 BrowserTestUtils.removeTab(addonsTab); 18 19 // Wait for customize mode to be re-entered now that the customize tab is 20 // active. This is needed for endCustomizing() to work properly. 21 await TestUtils.waitForCondition(() => 22 document.documentElement.hasAttribute("customizing") 23 ); 24 await endCustomizing(); 25 });