add tab tests
This commit is contained in:
parent
30d6872fa8
commit
cbd8f5b928
5 changed files with 158 additions and 9 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue