Add navigate test

This commit is contained in:
Shin'ya Ueoka 2018-05-12 23:21:16 +09:00
parent c6c885345e
commit 82aad419a7
6 changed files with 78 additions and 6 deletions

View file

@ -1,5 +1,5 @@
import {
TABS_CREATE, TABS_SELECT_AT, TABS_GET_ZOOM, TABS_SET_ZOOM,
TABS_CREATE, TABS_SELECT_AT, TABS_GET, TABS_GET_ZOOM, TABS_SET_ZOOM,
} from '../shared/messages';
import * as ipc from './ipc';
@ -19,6 +19,13 @@ const selectAt = (windowId, index) => {
});
};
const get = (tabId) => {
return ipc.send({
type: TABS_GET,
tabId,
});
};
const getZoom = (tabId) => {
return ipc.send({
tabId,
@ -34,4 +41,4 @@ const setZoom = (tabId, factor) => {
});
};
export { create, selectAt, getZoom, setZoom };
export { create, selectAt, get, getZoom, setZoom };