aboutsummaryrefslogtreecommitdiff
path: root/e2e/ambassador/src/client
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-05-13 00:12:11 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2018-05-13 01:01:10 +0900
commit5617f6f7650e0eb5711bea5b060e98f0d2e94f46 (patch)
tree6e7a1f48f82c15beddd0015c1a63ee3df0675d38 /e2e/ambassador/src/client
parent82aad419a74a3061247d4e82656fa711e63f213c (diff)
Add e2e test cases for deleting tabs
Diffstat (limited to 'e2e/ambassador/src/client')
-rw-r--r--e2e/ambassador/src/client/tabs.js13
1 files changed, 11 insertions, 2 deletions
diff --git a/e2e/ambassador/src/client/tabs.js b/e2e/ambassador/src/client/tabs.js
index 14d524d..290428c 100644
--- a/e2e/ambassador/src/client/tabs.js
+++ b/e2e/ambassador/src/client/tabs.js
@@ -1,5 +1,6 @@
import {
- TABS_CREATE, TABS_SELECT_AT, TABS_GET, TABS_GET_ZOOM, TABS_SET_ZOOM,
+ TABS_CREATE, TABS_SELECT_AT, TABS_GET, TABS_UPDATE,
+ TABS_GET_ZOOM, TABS_SET_ZOOM,
} from '../shared/messages';
import * as ipc from './ipc';
@@ -26,6 +27,14 @@ const get = (tabId) => {
});
};
+const update = (tabId, properties) => {
+ return ipc.send({
+ type: TABS_UPDATE,
+ tabId,
+ properties,
+ });
+};
+
const getZoom = (tabId) => {
return ipc.send({
tabId,
@@ -41,4 +50,4 @@ const setZoom = (tabId, factor) => {
});
};
-export { create, selectAt, get, getZoom, setZoom };
+export { create, selectAt, get, update, getZoom, setZoom };