diff --git a/tests/tests/swfs/avm1/key_isToggled/input.json b/tests/tests/swfs/avm1/key_isToggled/input.json new file mode 100644 index 000000000000..13b78fc44bf9 --- /dev/null +++ b/tests/tests/swfs/avm1/key_isToggled/input.json @@ -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 + } +] \ No newline at end of file diff --git a/tests/tests/swfs/avm1/key_isToggled/output.txt b/tests/tests/swfs/avm1/key_isToggled/output.txt new file mode 100644 index 000000000000..a3f31309fffd --- /dev/null +++ b/tests/tests/swfs/avm1/key_isToggled/output.txt @@ -0,0 +1,9 @@ +false +true +false +true +true +true +true +true +false diff --git a/tests/tests/swfs/avm1/key_isToggled/test.fla b/tests/tests/swfs/avm1/key_isToggled/test.fla new file mode 100644 index 000000000000..97f8a56934cb Binary files /dev/null and b/tests/tests/swfs/avm1/key_isToggled/test.fla differ diff --git a/tests/tests/swfs/avm1/key_isToggled/test.swf b/tests/tests/swfs/avm1/key_isToggled/test.swf new file mode 100644 index 000000000000..e57d1155620c Binary files /dev/null and b/tests/tests/swfs/avm1/key_isToggled/test.swf differ diff --git a/tests/tests/swfs/avm1/key_isToggled/test.toml b/tests/tests/swfs/avm1/key_isToggled/test.toml new file mode 100644 index 000000000000..c64cb4c7df1b --- /dev/null +++ b/tests/tests/swfs/avm1/key_isToggled/test.toml @@ -0,0 +1 @@ +num_frames = 3