tests: Add tests for stage access and basic display object properties

This commit is contained in:
David Wendt 2021-04-17 17:44:07 -04:00 committed by Mike Welsh
parent 716d492006
commit bc9affb09d
7 changed files with 36 additions and 0 deletions

View File

@ -560,6 +560,8 @@ swf_tests! {
(as3_op_coerce, "avm2/op_coerce", 1), (as3_op_coerce, "avm2/op_coerce", 1),
(as3_domain_memory, "avm2/domain_memory", 1), (as3_domain_memory, "avm2/domain_memory", 1),
(as3_movieclip_symbol_constr, "avm2/movieclip_symbol_constr", 1), (as3_movieclip_symbol_constr, "avm2/movieclip_symbol_constr", 1),
(as3_stage_access, "avm2/stage_access", 1),
(as3_stage_properties, "avm2/stage_properties", 1),
} }
// TODO: These tests have some inaccuracies currently, so we use approx_eq to test that numeric values are close enough. // TODO: These tests have some inaccuracies currently, so we use approx_eq to test that numeric values are close enough.

View File

@ -0,0 +1,10 @@
// (in MainTimeline...)
// this.stage
[object Stage]
// this.parent
[object Stage]
// (in Child...)
// this.stage
[object Stage]
// this.parent.parent
[object Stage]

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,24 @@
//this.stage.alpha
1
//this.stage.height
80.95
//this.stage.name
null
//this.stage.parent
null
//this.stage.root
[object Stage]
//this.stage.rotation
0
//this.stage.scaleX
1
//this.stage.scaleY
1
//this.stage.visible
true
//this.stage.width
87
//this.stage.x
0
//this.stage.y
0

Binary file not shown.

Binary file not shown.