Skip to content

Commit

Permalink
tests/avm1: Added test for key.isToggled
Browse files Browse the repository at this point in the history
  • Loading branch information
Flawake authored and danielhjacobs committed Oct 26, 2023
1 parent 333009b commit ee92376
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 0 deletions.
35 changes: 35 additions & 0 deletions tests/tests/swfs/avm1/key_isToggled/input.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[
{
"type": "KeyDown",
"key_code": 65
},
{
"type": "MouseDown",
"pos": [10, 10],
"btn": "Left"
},
{
"type": "Wait"
},
{
"type": "KeyDown",
"key_code": 20
},
{
"type": "MouseUp",
"pos": [1, 1],
"btn": "Left"
},
{
"type": "MouseDown",
"pos": [1, 1],
"btn": "Left"
},
{
"type": "Wait"
},
{
"type": "KeyDown",
"key_code": 0
}
]
9 changes: 9 additions & 0 deletions tests/tests/swfs/avm1/key_isToggled/output.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
false
true
false
true
true
true
true
true
false
Binary file added tests/tests/swfs/avm1/key_isToggled/test.fla
Binary file not shown.
Binary file added tests/tests/swfs/avm1/key_isToggled/test.swf
Binary file not shown.
1 change: 1 addition & 0 deletions tests/tests/swfs/avm1/key_isToggled/test.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
num_frames = 3

0 comments on commit ee92376

Please sign in to comment.