-
-
Notifications
You must be signed in to change notification settings - Fork 828
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests: Add avm1/sandbox_type_remote test
Verifies the sandbox type of SWFs loaded through network.
- Loading branch information
Showing
6 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+126 Bytes
tests/tests/swfs/avm1/sandbox_type_remote/localhost/test-network.swf
Binary file not shown.
Binary file added
BIN
+127 Bytes
tests/tests/swfs/avm1/sandbox_type_remote/localhost/test-no-network.swf
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Current sandbox type: localWithNetwork | ||
[network] Current sandbox type: remote | ||
[no network] Current sandbox type: remote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
num_ticks = 3 |