-
-
Notifications
You must be signed in to change notification settings - Fork 838
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add json/input_event_queue/halt_6.jsonc
- Loading branch information
Showing
4 changed files
with
291 additions
and
5 deletions.
There are no files selected for viewing
97 changes: 97 additions & 0 deletions
97
...st_event_to_virtual_devices/json/expected_post_event_to_virtual_devices_queue/halt_6.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
[ | ||
{ | ||
"keyboard_input": { | ||
"keys": [ | ||
{ | ||
"key_code": "tab" | ||
} | ||
], | ||
"modifiers": [] | ||
}, | ||
"time_stamp": 5, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [ | ||
{ | ||
"key_code": "tab" | ||
} | ||
], | ||
"modifiers": [ | ||
"left_shift" | ||
] | ||
}, | ||
"time_stamp": 10, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [ | ||
{ | ||
"key_code": "tab" | ||
}, | ||
{ | ||
"key_code": "f15" | ||
} | ||
], | ||
"modifiers": [ | ||
"left_shift" | ||
] | ||
}, | ||
"time_stamp": 15, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [ | ||
{ | ||
"key_code": "tab" | ||
} | ||
], | ||
"modifiers": [ | ||
"left_shift" | ||
] | ||
}, | ||
"time_stamp": 20, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [], | ||
"modifiers": [ | ||
"left_shift" | ||
] | ||
}, | ||
"time_stamp": 8, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [], | ||
"modifiers": [] | ||
}, | ||
"time_stamp": 25, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [ | ||
{ | ||
"key_code": "f14" | ||
} | ||
], | ||
"modifiers": [] | ||
}, | ||
"time_stamp": 30, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [], | ||
"modifiers": [] | ||
}, | ||
"time_stamp": 35, | ||
"type": "keyboard_input" | ||
} | ||
] |
164 changes: 164 additions & 0 deletions
164
tests/src/post_event_to_virtual_devices/json/input_event_queue/halt_6.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,164 @@ | ||
[ | ||
// Send events: | ||
// - (not halt case) | ||
// - f13 key_down | ||
// - tab key_down | ||
// - f13 key_up (fire to_after_key_up) | ||
// - tab key_up | ||
// - (halt case) | ||
// - f13 key_down | ||
// - f13 key_up (fire to_if_alone) | ||
// | ||
// Expected result: | ||
// - (not halt case) | ||
// - tab key_down | ||
// - left_shift key_down | ||
// - f15 key_down | ||
// - f15 key_up | ||
// - tab key_up | ||
// - left_shift key_up | ||
// - (halt case) | ||
// - f14 key_down | ||
// - f14 key_up | ||
|
||
// f13 key_down | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_origin": "grabbed_device", | ||
"event_time_stamp": { | ||
"time_stamp": 2 | ||
}, | ||
"event_type": "key_down", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
// tab key_down | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "tab" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_origin": "grabbed_device", | ||
"event_time_stamp": { | ||
"time_stamp": 4 | ||
}, | ||
"event_type": "key_down", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "tab" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
// f13 key_up | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_origin": "grabbed_device", | ||
"event_time_stamp": { | ||
"time_stamp": 6 | ||
}, | ||
"event_type": "key_up", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
// tab key_up | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "tab" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_origin": "grabbed_device", | ||
"event_time_stamp": { | ||
"time_stamp": 8 | ||
}, | ||
"event_type": "key_up", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "tab" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
|
||
// f13 key_down | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_origin": "grabbed_device", | ||
"event_time_stamp": { | ||
"time_stamp": 10 | ||
}, | ||
"event_type": "key_down", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
|
||
// f13 key_up | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_origin": "grabbed_device", | ||
"event_time_stamp": { | ||
"time_stamp": 12 | ||
}, | ||
"event_type": "key_up", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters