tests: Add test for ActionCall

This commit is contained in:
Mike Welsh 2020-01-13 23:38:20 -08:00
parent 2d3801dac8
commit 4eef8a1821
4 changed files with 35 additions and 0 deletions

View File

@ -39,6 +39,7 @@ swf_tests! {
(as_transformed_flag, "avm1/as_transformed_flag", 3),
(attach_movie, "avm1/attach_movie", 1),
(function_base_clip, "avm1/function_base_clip", 2),
(call, "avm1/call", 2),
(color, "avm1/color", 1),
(clip_events, "avm1/clip_events", 4),
(create_empty_movie_clip, "avm1/create_empty_movie_clip", 2),

View File

@ -0,0 +1,34 @@
// frame 2
// call(3)
// frame 3 A
// frame 3 B
// call('SomeFrame')
// frame 4
// call(o) with toString
// frame 4
// call(5)
// frame 5
// foo
root
// mc._x
20
// tellTarget('mc') { call(5); }
// mc frame 5
// foo
mc
// tellTarget('BadClip') { call(5); }
// frame 5
// foo
root
// mc._x
20
// mc.f()
// call(5)
// mc frame 5
// foo
mc
// call(1234)
// call('INVALID')
// call(4294967299)
// frame 3 A
// frame 3 B

Binary file not shown.

Binary file not shown.