tests: Add test for stage instances

This commit is contained in:
Mike Welsh 2019-12-03 00:53:43 -08:00
parent c29b042f5e
commit 11f2b46b6a
4 changed files with 13 additions and 0 deletions

View File

@ -64,6 +64,7 @@ swf_tests! {
(object_prototypes, "avm1/object_prototypes", 1), (object_prototypes, "avm1/object_prototypes", 1),
(movieclip_prototype_extension, "avm1/movieclip_prototype_extension", 1), (movieclip_prototype_extension, "avm1/movieclip_prototype_extension", 1),
(recursive_prototypes, "avm1/recursive_prototypes", 1), (recursive_prototypes, "avm1/recursive_prototypes", 1),
(stage_object_children, "avm1/stage_object_children", 2),
(has_own_property, "avm1/has_own_property", 1), (has_own_property, "avm1/has_own_property", 1),
#[ignore] (extends_chain, "avm1/extends_chain", 1), #[ignore] (extends_chain, "avm1/extends_chain", 1),
(is_prototype_of, "avm1/is_prototype_of", 1), (is_prototype_of, "avm1/is_prototype_of", 1),

View File

@ -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

Binary file not shown.

Binary file not shown.