add tab tests

This commit is contained in:
Shin'ya Ueoka 2018-02-17 22:41:08 +09:00
parent 30d6872fa8
commit cbd8f5b928
5 changed files with 158 additions and 9 deletions

View file

@ -1,6 +1,6 @@
import {
WINDOWS_CREATE, WINDOWS_REMOVE, WINDOWS_GET,
TABS_CREATE,
TABS_CREATE, TABS_SELECT_AT,
EVENT_KEYPRESS, EVENT_KEYDOWN, EVENT_KEYUP,
SCROLL_GET, SCROLL_SET,
} from '../shared/messages';
@ -20,6 +20,11 @@ receiveContentMessage((message) => {
url: message.url,
windowId: message.windowId,
});
case TABS_SELECT_AT:
return tabs.selectAt({
windowId: message.windowId,
index: message.index,
});
case EVENT_KEYPRESS:
case EVENT_KEYDOWN:
case EVENT_KEYUP: