aboutsummaryrefslogtreecommitdiff
path: root/e2e/ambassador/src/client/keys.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-04-06 13:43:04 +0000
committerGitHub <noreply@github.com>2019-04-06 13:43:04 +0000
commit859d0372b5bb7297a0b8ed37a559d88a425f3799 (patch)
tree293adc0e1963b4ded2760107aa69d1f793751114 /e2e/ambassador/src/client/keys.js
parentd37e0b92d39fe2f721bfe3330395043eb55861f3 (diff)
parentb604a942a84d7c5d54029b48ae698d15ffe4f5ac (diff)
Merge pull request #559 from ueokande/lanthan-integration-test
Replace E2E tests with lanthan
Diffstat (limited to 'e2e/ambassador/src/client/keys.js')
-rw-r--r--e2e/ambassador/src/client/keys.js28
1 files changed, 0 insertions, 28 deletions
diff --git a/e2e/ambassador/src/client/keys.js b/e2e/ambassador/src/client/keys.js
deleted file mode 100644
index 6b36c23..0000000
--- a/e2e/ambassador/src/client/keys.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import { EVENT_KEYPRESS, EVENT_KEYDOWN, EVENT_KEYUP } from '../shared/messages';
-import * as ipc from './ipc';
-
-const NEUTRAL_MODIFIERS = { shiftKey: false, altKey: false, ctrlKey: false };
-
-const press = (tabId, key, modifiers = NEUTRAL_MODIFIERS) => {
- return ipc.send({ ...modifiers,
- type: EVENT_KEYPRESS,
- tabId,
- key, });
-};
-
-const down = (tabId, key, modifiers = NEUTRAL_MODIFIERS) => {
- return ipc.send({ modifiers,
- type: EVENT_KEYDOWN,
- tabId,
- key, });
-};
-
-
-const up = (tabId, key, modifiers = NEUTRAL_MODIFIERS) => {
- return ipc.send({ modifiers,
- type: EVENT_KEYUP,
- tabId,
- key, });
-};
-
-export { press, down, up };