tests: Add avm1/sandbox_type_remote test
Verifies the sandbox type of SWFs loaded through network.
This commit is contained in:
parent
5da61c8b90
commit
24b0c8b01e
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,3 @@
|
||||||
|
Current sandbox type: localWithNetwork
|
||||||
|
[network] Current sandbox type: remote
|
||||||
|
[no network] Current sandbox type: remote
|
|
@ -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);
|
Binary file not shown.
|
@ -0,0 +1 @@
|
||||||
|
num_ticks = 3
|
Loading…
Reference in New Issue