diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-02-13 20:13:27 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-02-13 20:43:15 +0900 |
commit | 0904f8e1ebd61d425c3536a7dd02afbffaad0550 (patch) | |
tree | b95c476cabe2e519ab906ee9d3ec220b3551db86 /e2e/ambassador/src/background | |
parent | 3f8bbe11d96b751affa9e2bf0a1995008f9e3220 (diff) |
add tab delete test
Diffstat (limited to 'e2e/ambassador/src/background')
-rw-r--r-- | e2e/ambassador/src/background/index.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/e2e/ambassador/src/background/index.js b/e2e/ambassador/src/background/index.js index 9e64986..f9fda7e 100644 --- a/e2e/ambassador/src/background/index.js +++ b/e2e/ambassador/src/background/index.js @@ -1,5 +1,6 @@ import { - WINDOWS_CREATE, WINDOWS_REMOVE, TABS_CREATE, + WINDOWS_CREATE, WINDOWS_REMOVE, WINDOWS_GET, + TABS_CREATE, EVENT_KEYPRESS, EVENT_KEYDOWN, EVENT_KEYUP, } from '../shared/messages'; import * as tabs from './tabs'; @@ -11,6 +12,8 @@ receiveContentMessage((message) => { return browser.windows.create({ url: message.url }); case WINDOWS_REMOVE: return browser.windows.remove(message.windowId); + case WINDOWS_GET: + return browser.windows.get(message.windowId, { populate: true }); case TABS_CREATE: return tabs.create({ url: message.url, |