diff --git a/core/tests/regression_tests.rs b/core/tests/regression_tests.rs index bb8092607..5fb7f61b7 100644 --- a/core/tests/regression_tests.rs +++ b/core/tests/regression_tests.rs @@ -227,6 +227,7 @@ swf_tests! { (set_interval, "avm1/set_interval", 20), (context_menu, "avm1/context_menu", 1), (context_menu_item, "avm1/context_menu_item", 1), + (as3_hello_world, "avm2/hello_world", 1), } // TODO: These tests have some inaccuracies currently, so we use approx_eq to test that numeric values are close enough. diff --git a/core/tests/swfs/avm2/hello_world/Test.as b/core/tests/swfs/avm2/hello_world/Test.as new file mode 100644 index 000000000..6ee9ef5d2 --- /dev/null +++ b/core/tests/swfs/avm2/hello_world/Test.as @@ -0,0 +1,5 @@ +package { + public class Test {} +} + +trace("Hello world!"); \ No newline at end of file diff --git a/core/tests/swfs/avm2/hello_world/output.txt b/core/tests/swfs/avm2/hello_world/output.txt new file mode 100644 index 000000000..cd0875583 --- /dev/null +++ b/core/tests/swfs/avm2/hello_world/output.txt @@ -0,0 +1 @@ +Hello world! diff --git a/core/tests/swfs/avm2/hello_world/test.fla b/core/tests/swfs/avm2/hello_world/test.fla new file mode 100644 index 000000000..e84226824 Binary files /dev/null and b/core/tests/swfs/avm2/hello_world/test.fla differ diff --git a/core/tests/swfs/avm2/hello_world/test.swf b/core/tests/swfs/avm2/hello_world/test.swf new file mode 100644 index 000000000..777bb8c2d Binary files /dev/null and b/core/tests/swfs/avm2/hello_world/test.swf differ