Add (currently failing) test for constructors.

This commit is contained in:
David Wendt 2020-02-24 18:01:57 -05:00
parent a77f676279
commit f3dee5c310
5 changed files with 18 additions and 0 deletions

View File

@ -229,6 +229,7 @@ swf_tests! {
(context_menu_item, "avm1/context_menu_item", 1),
(as3_hello_world, "avm2/hello_world", 1),
(as3_function_call, "avm2/function_call", 1),
(as3_constructor_call, "avm2/constructor_call", 1),
}
// 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,14 @@
package {
public class Test {
}
}
class Test2 {
function Test2(v1, v2, v3) {
trace(v1);
trace(v2);
trace(v3);
}
}
new Test2("arg1", "arg2", "arg3");

View File

@ -0,0 +1,3 @@
arg1
arg2
arg3

Binary file not shown.

Binary file not shown.