Add (currently failing) test for constructors.
This commit is contained in:
parent
a77f676279
commit
f3dee5c310
|
@ -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.
|
||||
|
|
|
@ -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");
|
|
@ -0,0 +1,3 @@
|
|||
arg1
|
||||
arg2
|
||||
arg3
|
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue