aboutsummaryrefslogtreecommitdiff
path: root/e2e/ambassador/src/client/tabs.js
diff options
context:
space:
mode:
Diffstat (limited to 'e2e/ambassador/src/client/tabs.js')
-rw-r--r--e2e/ambassador/src/client/tabs.js14
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 };