Skip to content

Instantly share code, notes, and snippets.

@kmaglione

kmaglione/stdin.diff Secret

Created May 15, 2018
Embed
What would you like to do?
diff --git a/browser/components/extensions/test/browser/browser_ext_user_events.js b/browser/components/extensions/test/browser/browser_ext_user_events.js
--- a/browser/components/extensions/test/browser/browser_ext_user_events.js
+++ b/browser/components/extensions/test/browser/browser_ext_user_events.js
@@ -144,17 +144,17 @@ add_task(async function testSources() {
clickBrowserAction(extension);
await check("browser action click");
promisePopupNotificationShown("addon-webext-permissions").then(panel => {
panel.button.click();
});
- let tab = await BrowserTestUtils.openNewForegroundTab(gBrowser);
+ await BrowserTestUtils.openNewForegroundTab(gBrowser);
let menu = await openContextMenu("body");
let items = menu.getElementsByAttribute("label", "test user events");
is(items.length, 1, "Found context menu item");
EventUtils.synthesizeMouseAtCenter(items[0], {});
await check("context menu click");
extension.sendMessage("openOptionsPage");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment