Skip to content

Commit

Permalink
tests: Add focus_highlight/focus_highlight_basic
Browse files Browse the repository at this point in the history
  • Loading branch information
kjarosh committed Mar 27, 2024
1 parent dd86fd4 commit 4c46c14
Show file tree
Hide file tree
Showing 14 changed files with 84 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
[
{ "type": "KeyDown", "key_code": 9 },
{ "type": "Wait" },
{ "type": "KeyDown", "key_code": 9 },
{ "type": "Wait" },
{ "type": "KeyDown", "key_code": 9 },
{ "type": "MouseMove", "pos": [42, 42] },
{ "type": "Wait" },
{ "type": "KeyDown", "key_code": 9 },
{ "type": "MouseDown", "pos": [42, 42], "btn": "Left" },
{ "type": "Wait" },
{ "type": "KeyDown", "key_code": 9 },
{ "type": "MouseUp", "pos": [42, 42], "btn": "Left" },
{ "type": "Wait" },
{ "type": "KeyDown", "key_code": 9 },
{ "type": "KeyDown", "key_code": 97 },
{ "type": "Wait" },
{ "type": "KeyDown", "key_code": 27 },
{ "type": "KeyDown", "key_code": 9 },
{ "type": "KeyDown", "key_code": 27 },
{ "type": "Wait" },
{ "type": "KeyDown", "key_code": 9 },
{ "type": "KeyDown", "key_code": 27 },
{ "type": "KeyDown", "key_code": 9 },
{ "type": "Wait" },
{ "type": "MouseMove", "pos": [42, 42] },
{ "type": "KeyDown", "key_code": 27 },
{ "type": "Wait" }
]
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
clip.tabEnabled = true;
clip.focusEnabled = true;
clip.tabIndex = 1;
clip2.tabEnabled = true;
clip2.focusEnabled = true;
clip2.tabIndex = 2;

var listener = new Object();
listener.onKeyDown = function() {
if (Key.getCode() == 27) {
Selection.setFocus(clip2);
Selection.setFocus(clip);
}
};
Key.addListener(listener);
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
num_ticks = 9

[image_comparisons."output.01_highlight_under"]
tolerance = 0
trigger = 1

[image_comparisons."output.02_highlight_over"]
tolerance = 0
trigger = 2

[image_comparisons."output.03_after_mouse_move"]
tolerance = 0
trigger = 3

[image_comparisons."output.04_after_mouse_up"]
tolerance = 0
trigger = 4

[image_comparisons."output.05_after_mouse_down"]
tolerance = 0
trigger = 5

[image_comparisons."output.06_after_key_down"]
tolerance = 0
trigger = 6

[image_comparisons."output.07_after_focus_change"]
tolerance = 0
trigger = 7

[image_comparisons."output.08_after_focus_change_and_tab"]
tolerance = 0
trigger = 8

[image_comparisons."output.09_after_focus_change_without_highlight"]
tolerance = 0
trigger = 9

[player_options]
with_renderer = { optional = false, sample_count = 1 }

0 comments on commit 4c46c14

Please sign in to comment.