tests: Add localToGlobal/globalToLocal test

This commit is contained in:
Mike Welsh 2020-02-17 11:01:03 -08:00
parent 2af21d87e0
commit b6249cdb73
4 changed files with 43 additions and 0 deletions

View File

@ -100,6 +100,7 @@ swf_tests! {
(lessthan2_swf7, "avm1/lessthan2_swf7", 1),
(logical_ops_swf4, "avm1/logical_ops_swf4", 1),
(logical_ops_swf8, "avm1/logical_ops_swf8", 1),
(local_to_global, "avm1/local_to_global", 1),
(movieclip_depth_methods, "avm1/movieclip_depth_methods", 3),
(greater_swf6, "avm1/greater_swf6", 1),
(greater_swf7, "avm1/greater_swf7", 1),

View File

@ -0,0 +1,42 @@
10
10
// clip.clip.localToGlobal
225.4
269.75
// clip.globalToLocal
210
209.95
-10
-10
// clip.clip.localToGlobal (root moved)
189.2
281.6
// clip.globalToLocal
190.2
190.2
// clip.globalToLocal (invalid 1)
undefined
undefined
// clip.globalToLocal (invalid 2)
10
null
// clip.localToGlobal (invalid 3)
10
true
// clip.globalToLocal (invalid 4)
10
10
// clip.localToGlobal (invalid 5)
10
10

Binary file not shown.

Binary file not shown.