Add a basic test for function calls.

This commit is contained in:
David Wendt 2020-02-24 14:12:51 -05:00
parent 38868fbdfe
commit bedf5cb459
5 changed files with 15 additions and 0 deletions

View File

@ -228,6 +228,7 @@ swf_tests! {
(context_menu, "avm1/context_menu", 1),
(context_menu_item, "avm1/context_menu_item", 1),
(as3_hello_world, "avm2/hello_world", 1),
(as3_function_call, "avm2/function_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,11 @@
package {
public class Test {}
}
function testfunc(v1, v2, v3) {
trace(v1);
trace(v2);
trace(v3);
}
testfunc("arg1", "arg2", "arg3");

View File

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

Binary file not shown.

Binary file not shown.