tests: Add a new test for properties unique to the `Stage`
This commit is contained in:
parent
52c3b0f1bc
commit
a877fe8c67
|
@ -561,8 +561,9 @@ swf_tests! {
|
|||
(as3_domain_memory, "avm2/domain_memory", 1),
|
||||
(as3_movieclip_symbol_constr, "avm2/movieclip_symbol_constr", 1),
|
||||
(as3_stage_access, "avm2/stage_access", 1),
|
||||
(as3_stage_properties, "avm2/stage_properties", 1),
|
||||
(as3_stage_displayobject_properties, "avm2/stage_displayobject_properties", 1),
|
||||
(as3_stage_loaderinfo_properties, "avm2/stage_loaderinfo_properties", 2),
|
||||
(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.
|
||||
|
|
|
@ -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.
|
@ -1,24 +1,26 @@
|
|||
//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
|
||||
//this.stage.allowsFullScreen
|
||||
true
|
||||
//this.stage.width
|
||||
87
|
||||
//this.stage.x
|
||||
0
|
||||
//this.stage.y
|
||||
0
|
||||
//this.stage.allowsFullScreenInteractive
|
||||
false
|
||||
//this.stage.browserZoomFactor
|
||||
1
|
||||
//this.stage.color
|
||||
4294967295
|
||||
//this.stage.color = 0x22CCAA
|
||||
//this.stage.color
|
||||
4280470698
|
||||
//this.stage.color = 0x22CCAA55
|
||||
//this.stage.color
|
||||
4291603029
|
||||
//this.stage.contentsScaleFactor
|
||||
1
|
||||
//this.stage.displayState
|
||||
normal
|
||||
//this.stage.frameRate
|
||||
24
|
||||
//this.stage.quality
|
||||
HIGH
|
||||
//this.stage.stageHeight
|
||||
400
|
||||
//this.stage.stageWidth
|
||||
550
|
||||
|
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue