diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-02-17 22:41:08 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-02-18 21:04:42 +0900 |
commit | cbd8f5b9288c7ec84fc77a3d1a30a4d018cf05f0 (patch) | |
tree | 8ce66569799e17264afdf42e0bf00099d1c5b4e1 /e2e/ambassador/src/client/tabs.js | |
parent | 30d6872fa833861bc479494b2951e196f3addb60 (diff) |
add tab tests
Diffstat (limited to 'e2e/ambassador/src/client/tabs.js')
-rw-r--r-- | e2e/ambassador/src/client/tabs.js | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/e2e/ambassador/src/client/tabs.js b/e2e/ambassador/src/client/tabs.js index 4db3c11..6aaefbd 100644 --- a/e2e/ambassador/src/client/tabs.js +++ b/e2e/ambassador/src/client/tabs.js @@ -1,4 +1,6 @@ -import { TABS_CREATE } from '../shared/messages'; +import { + TABS_CREATE, TABS_SELECT_AT, +} from '../shared/messages'; import * as ipc from './ipc'; const create = (windowId, url) => { @@ -9,4 +11,12 @@ const create = (windowId, url) => { }); }; -export { create }; +const selectAt = (windowId, index) => { + return ipc.send({ + type: TABS_SELECT_AT, + windowId, + index, + }); +}; + +export { create, selectAt }; |