diff --git a/tests/tests/swfs/avm1/sandbox_type_remote/localhost/test-network.swf b/tests/tests/swfs/avm1/sandbox_type_remote/localhost/test-network.swf new file mode 100644 index 000000000..06fd856fb Binary files /dev/null and b/tests/tests/swfs/avm1/sandbox_type_remote/localhost/test-network.swf differ diff --git a/tests/tests/swfs/avm1/sandbox_type_remote/localhost/test-no-network.swf b/tests/tests/swfs/avm1/sandbox_type_remote/localhost/test-no-network.swf new file mode 100644 index 000000000..acc9736fe Binary files /dev/null and b/tests/tests/swfs/avm1/sandbox_type_remote/localhost/test-no-network.swf differ diff --git a/tests/tests/swfs/avm1/sandbox_type_remote/output.txt b/tests/tests/swfs/avm1/sandbox_type_remote/output.txt new file mode 100644 index 000000000..24ea38eea --- /dev/null +++ b/tests/tests/swfs/avm1/sandbox_type_remote/output.txt @@ -0,0 +1,3 @@ +Current sandbox type: localWithNetwork +[network] Current sandbox type: remote +[no network] Current sandbox type: remote diff --git a/tests/tests/swfs/avm1/sandbox_type_remote/test.as b/tests/tests/swfs/avm1/sandbox_type_remote/test.as new file mode 100644 index 000000000..25f8442e4 --- /dev/null +++ b/tests/tests/swfs/avm1/sandbox_type_remote/test.as @@ -0,0 +1,10 @@ +trace("Current sandbox type: " + System.security.sandboxType); + +var networkMc = _root.createEmptyMovieClip("network_mc", _root.getNextHighestDepth()); + +var loader = new MovieClipLoader(); +loader.onLoadInit = function(target, status) { + var noNetworkMc = _root.createEmptyMovieClip("no_network_mc", _root.getNextHighestDepth()); + noNetworkMc.loadMovie("http://localhost:8000/test-no-network.swf"); +} +loader.loadClip("http://localhost:8000/test-network.swf", networkMc); diff --git a/tests/tests/swfs/avm1/sandbox_type_remote/test.swf b/tests/tests/swfs/avm1/sandbox_type_remote/test.swf new file mode 100644 index 000000000..fb453f0af Binary files /dev/null and b/tests/tests/swfs/avm1/sandbox_type_remote/test.swf differ diff --git a/tests/tests/swfs/avm1/sandbox_type_remote/test.toml b/tests/tests/swfs/avm1/sandbox_type_remote/test.toml new file mode 100644 index 000000000..99142b5c1 --- /dev/null +++ b/tests/tests/swfs/avm1/sandbox_type_remote/test.toml @@ -0,0 +1 @@ +num_ticks = 3