-
-
Notifications
You must be signed in to change notification settings - Fork 809
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add focusrect_mouse_swf8 test
This test verifies the behavior of focus highlight when mouse is moved and mouse buttons are clicked for SWF8.
- Loading branch information
1 parent
a594d8d
commit 31d8d98
Showing
12 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
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,26 @@ | ||
[ | ||
{ "type": "KeyDown", "key_code": 9 }, | ||
{ "type": "Wait" }, | ||
{ "type": "KeyDown", "key_code": 9 }, | ||
{ "type": "MouseMove", "pos": [5, 5] }, | ||
{ "type": "MouseMove", "pos": [6, 6] }, | ||
{ "type": "Wait" }, | ||
{ "type": "KeyDown", "key_code": 9 }, | ||
{ "type": "MouseDown", "pos": [5, 5], "btn": "Left" }, | ||
{ "type": "Wait" }, | ||
{ "type": "KeyDown", "key_code": 9 }, | ||
{ "type": "MouseUp", "pos": [5, 5], "btn": "Left" }, | ||
{ "type": "Wait" }, | ||
{ "type": "KeyDown", "key_code": 9 }, | ||
{ "type": "MouseDown", "pos": [5, 5], "btn": "Right" }, | ||
{ "type": "Wait" }, | ||
{ "type": "KeyDown", "key_code": 9 }, | ||
{ "type": "MouseUp", "pos": [5, 5], "btn": "Right" }, | ||
{ "type": "Wait" }, | ||
{ "type": "KeyDown", "key_code": 9 }, | ||
{ "type": "MouseDown", "pos": [5, 5], "btn": "Middle" }, | ||
{ "type": "Wait" }, | ||
{ "type": "KeyDown", "key_code": 9 }, | ||
{ "type": "MouseUp", "pos": [5, 5], "btn": "Middle" }, | ||
{ "type": "Wait" } | ||
] |
Binary file added
BIN
+183 Bytes
tests/tests/swfs/avm1/focusrect_mouse_swf8/output.01.tab.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+172 Bytes
tests/tests/swfs/avm1/focusrect_mouse_swf8/output.02.move.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+172 Bytes
tests/tests/swfs/avm1/focusrect_mouse_swf8/output.03.left_down.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+172 Bytes
tests/tests/swfs/avm1/focusrect_mouse_swf8/output.04.left_up.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+172 Bytes
tests/tests/swfs/avm1/focusrect_mouse_swf8/output.05.right_down.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+172 Bytes
tests/tests/swfs/avm1/focusrect_mouse_swf8/output.06.right_up.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+183 Bytes
tests/tests/swfs/avm1/focusrect_mouse_swf8/output.07.middle_down.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+183 Bytes
tests/tests/swfs/avm1/focusrect_mouse_swf8/output.08.middle_up.expected.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Empty file.
Binary file not shown.
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,13 @@ | ||
num_ticks = 8 | ||
|
||
image_comparisons."output.01.tab".trigger = 1 | ||
image_comparisons."output.02.move".trigger = 2 | ||
image_comparisons."output.03.left_down".trigger = 3 | ||
image_comparisons."output.04.left_up".trigger = 4 | ||
image_comparisons."output.05.right_down".trigger = 5 | ||
image_comparisons."output.06.right_up".trigger = 6 | ||
image_comparisons."output.07.middle_down".trigger = 7 | ||
image_comparisons."output.08.middle_up".trigger = 8 | ||
|
||
[player_options] | ||
with_renderer = { optional = false, sample_count = 1 } |