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/client | |
parent | 3f8bbe11d96b751affa9e2bf0a1995008f9e3220 (diff) |
add tab delete test
Diffstat (limited to 'e2e/ambassador/src/client')
-rw-r--r-- | e2e/ambassador/src/client/windows.js | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/e2e/ambassador/src/client/windows.js b/e2e/ambassador/src/client/windows.js index c6ba37a..f92405a 100644 --- a/e2e/ambassador/src/client/windows.js +++ b/e2e/ambassador/src/client/windows.js @@ -1,4 +1,6 @@ -import { WINDOWS_CREATE, WINDOWS_REMOVE } from '../shared/messages'; +import { + WINDOWS_CREATE, WINDOWS_REMOVE, WINDOWS_GET +} from '../shared/messages'; import * as ipc from './ipc'; const create = (url) => { @@ -15,4 +17,11 @@ const remove = (windowId) => { }); }; -export { create, remove }; +const get = (windowId) => { + return ipc.send({ + type: WINDOWS_GET, + windowId, + }); +}; + +export { create, remove, get }; |