diff --git a/core/tests/regression_tests.rs b/core/tests/regression_tests.rs index 90f105bfe..9409a4bdd 100644 --- a/core/tests/regression_tests.rs +++ b/core/tests/regression_tests.rs @@ -64,6 +64,7 @@ swf_tests! { (object_prototypes, "avm1/object_prototypes", 1), (movieclip_prototype_extension, "avm1/movieclip_prototype_extension", 1), (recursive_prototypes, "avm1/recursive_prototypes", 1), + (stage_object_children, "avm1/stage_object_children", 2), (has_own_property, "avm1/has_own_property", 1), #[ignore] (extends_chain, "avm1/extends_chain", 1), (is_prototype_of, "avm1/is_prototype_of", 1), diff --git a/core/tests/swfs/avm1/stage_object_children/output.txt b/core/tests/swfs/avm1/stage_object_children/output.txt new file mode 100644 index 000000000..e301b072c --- /dev/null +++ b/core/tests/swfs/avm1/stage_object_children/output.txt @@ -0,0 +1,12 @@ +MovieClip clip added +clip: _level0.clip +Set clip to 10 +clip: 10 +Set clip to undefined +clip: undefined +Delete clip +clip: _level0.clip +Set MovieClip.prototype.clip to 2 +clip: _level0.clip +MovieClip clip removed +clip: 2 diff --git a/core/tests/swfs/avm1/stage_object_children/test.fla b/core/tests/swfs/avm1/stage_object_children/test.fla new file mode 100644 index 000000000..9ef0bd51f Binary files /dev/null and b/core/tests/swfs/avm1/stage_object_children/test.fla differ diff --git a/core/tests/swfs/avm1/stage_object_children/test.swf b/core/tests/swfs/avm1/stage_object_children/test.swf new file mode 100644 index 000000000..f0714491d Binary files /dev/null and b/core/tests/swfs/avm1/stage_object_children/test.swf differ