tests: Add avm2/sandbox_type_local_file test

Verifies the sandbox type of a local SWF with network disabled.
This commit is contained in:
Kamil Jarosz 2024-09-01 15:13:48 +02:00
parent cbb1af7825
commit 4607bfd987
4 changed files with 13 additions and 0 deletions

View File

@ -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);
}
}
}

View File

@ -0,0 +1 @@
Current sandbox type: localWithFile

Binary file not shown.

View File

@ -0,0 +1 @@
num_ticks = 1