diff --git a/tests/tests/regression_tests.rs b/tests/tests/regression_tests.rs index 5419cfaa8..e79b918f4 100644 --- a/tests/tests/regression_tests.rs +++ b/tests/tests/regression_tests.rs @@ -111,6 +111,7 @@ swf_tests! { (as2_bitand, "avm1/bitand", 1), (as2_bitxor, "avm1/bitxor", 1), (function_base_clip, "avm1/function_base_clip", 2), + (function_base_clip_removed, "avm1/function_base_clip_removed", 3), (call, "avm1/call", 2), (color, "avm1/color", 1, img = true), (clip_events, "avm1/clip_events", 4), diff --git a/tests/tests/swfs/avm1/function_base_clip_removed/output.txt b/tests/tests/swfs/avm1/function_base_clip_removed/output.txt new file mode 100644 index 000000000..15155c753 --- /dev/null +++ b/tests/tests/swfs/avm1/function_base_clip_removed/output.txt @@ -0,0 +1,22 @@ +clip1.f(): +this: _level0.clip1 +_root: _level0 +base: /functionDefiner + +clip2.obj.f(): +this: [object Object] +_root: _level0 +base: /functionDefiner + +functionDefiner removed + +clip1.f(): +this: _level0.clip1 +_root: _level0 +base: /clip1 + +clip2.obj.f(): +this: [object Object] +_root: _level0 +base: / + diff --git a/tests/tests/swfs/avm1/function_base_clip_removed/test.fla b/tests/tests/swfs/avm1/function_base_clip_removed/test.fla new file mode 100644 index 000000000..9eead8068 Binary files /dev/null and b/tests/tests/swfs/avm1/function_base_clip_removed/test.fla differ diff --git a/tests/tests/swfs/avm1/function_base_clip_removed/test.swf b/tests/tests/swfs/avm1/function_base_clip_removed/test.swf new file mode 100644 index 000000000..7343ba5cd Binary files /dev/null and b/tests/tests/swfs/avm1/function_base_clip_removed/test.swf differ