diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2018-02-18 21:43:28 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-18 21:43:28 +0900 |
commit | a708cb3bcf1bea5996802e813cd0da80456a9150 (patch) | |
tree | ca52a886481d85bf69a1e5ccabf594737bfd1569 /e2e/ambassador/src/client | |
parent | 9f1da8b9e4969ca3b51bf84b61ea95f284cb13c9 (diff) | |
parent | ccb3c64425b83ab3d1f7bce000fa6ba452f3fd83 (diff) |
Merge pull request #345 from ueokande/e2e-test
add e2e test cases
Diffstat (limited to 'e2e/ambassador/src/client')
-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 }; |