Add a basic test for function calls.
This commit is contained in:
parent
38868fbdfe
commit
bedf5cb459
|
@ -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.
|
||||
|
|
|
@ -0,0 +1,11 @@
|
|||
package {
|
||||
public class Test {}
|
||||
}
|
||||
|
||||
function testfunc(v1, v2, v3) {
|
||||
trace(v1);
|
||||
trace(v2);
|
||||
trace(v3);
|
||||
}
|
||||
|
||||
testfunc("arg1", "arg2", "arg3");
|
|
@ -0,0 +1,3 @@
|
|||
arg1
|
||||
arg2
|
||||
arg3
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue