diff --git a/tests/tests/swfs/avm2/sandbox_type_local_file/Test.as b/tests/tests/swfs/avm2/sandbox_type_local_file/Test.as new file mode 100644 index 000000000..78251889d --- /dev/null +++ b/tests/tests/swfs/avm2/sandbox_type_local_file/Test.as @@ -0,0 +1,11 @@ +package { + import flash.display.Sprite; + import flash.system.Security; + + // Compile with network disabled + public class Test extends Sprite { + public function Test() { + trace("Current sandbox type: " + Security.sandboxType); + } + } +} diff --git a/tests/tests/swfs/avm2/sandbox_type_local_file/output.txt b/tests/tests/swfs/avm2/sandbox_type_local_file/output.txt new file mode 100644 index 000000000..e0f988a58 --- /dev/null +++ b/tests/tests/swfs/avm2/sandbox_type_local_file/output.txt @@ -0,0 +1 @@ +Current sandbox type: localWithFile diff --git a/tests/tests/swfs/avm2/sandbox_type_local_file/test.swf b/tests/tests/swfs/avm2/sandbox_type_local_file/test.swf new file mode 100644 index 000000000..a0e6f65e1 Binary files /dev/null and b/tests/tests/swfs/avm2/sandbox_type_local_file/test.swf differ diff --git a/tests/tests/swfs/avm2/sandbox_type_local_file/test.toml b/tests/tests/swfs/avm2/sandbox_type_local_file/test.toml new file mode 100644 index 000000000..cf6123969 --- /dev/null +++ b/tests/tests/swfs/avm2/sandbox_type_local_file/test.toml @@ -0,0 +1 @@ +num_ticks = 1