tests: Add test for AsType

This commit is contained in:
EmperorBale 2021-04-12 14:04:02 -07:00 committed by Mike Welsh
parent ca2709f594
commit e4ba4b074a
3 changed files with 25 additions and 0 deletions

View File

@ -372,6 +372,7 @@ swf_tests! {
(as3_is_nan, "avm2/is_nan", 1), (as3_is_nan, "avm2/is_nan", 1),
(as3_istype, "avm2/istype", 1), (as3_istype, "avm2/istype", 1),
(as3_instanceof, "avm2/instanceof", 1), (as3_instanceof, "avm2/instanceof", 1),
(as3_astype, "avm2/astype", 1),
(as3_astypelate, "avm2/astypelate", 1), (as3_astypelate, "avm2/astypelate", 1),
(as3_truthiness, "avm2/truthiness", 1), (as3_truthiness, "avm2/truthiness", 1),
(as3_falsiness, "avm2/falsiness", 1), (as3_falsiness, "avm2/falsiness", 1),

View File

@ -0,0 +1,24 @@
//x as Object
[object Test3]
//x as Test2
[object Test3]
//x as ITest2
[object Test3]
//x as Test3
[object Test3]
//x as ITest3
[object Test3]
//x as Test4
null
//y as Object
[object Test4]
//y as Test2
[object Test4]
//y as ITest2
[object Test4]
//y as Test3
[object Test4]
//y as ITest3
[object Test4]
//y as Test4
[object Test4]

Binary file not shown.