Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

/* Any copyright is dedicated to the Public Domain.
"use strict";
add_task(async function test_OPEN_PROTECTION_PANEL() {
await BrowserTestUtils.withNewTab(EXAMPLE_URL, async () => {
const popupshown = BrowserTestUtils.waitForEvent(
window,
"popupshown",
true,
e => e.target.id == "protections-popup"
);
await SMATestUtils.executeAndValidateAction({
type: "OPEN_PROTECTION_PANEL",
});
let { target: popupEl } = await popupshown;
Assert.equal(popupEl.state, "open", "Protections popup is open.");
});
});