diff --git a/tests/tests/swfs/avm2/resolve_order/Test.as b/tests/tests/swfs/avm2/resolve_order/Test.as new file mode 100644 index 000000000..aff62d19b --- /dev/null +++ b/tests/tests/swfs/avm2/resolve_order/Test.as @@ -0,0 +1,20 @@ +package { + + public class Test { + public function Test() { + + } + } +} + +this["int"] = "global"; +this["other"] = "global"; +trace(int); +trace(other); + +function test() { + trace(int); + trace(other); +} + +test(); \ No newline at end of file diff --git a/tests/tests/swfs/avm2/resolve_order/output.txt b/tests/tests/swfs/avm2/resolve_order/output.txt new file mode 100644 index 000000000..a312ed46e --- /dev/null +++ b/tests/tests/swfs/avm2/resolve_order/output.txt @@ -0,0 +1,4 @@ +[class int] +global +[class int] +global diff --git a/tests/tests/swfs/avm2/resolve_order/test.fla b/tests/tests/swfs/avm2/resolve_order/test.fla new file mode 100644 index 000000000..0264fb4cf Binary files /dev/null and b/tests/tests/swfs/avm2/resolve_order/test.fla differ diff --git a/tests/tests/swfs/avm2/resolve_order/test.swf b/tests/tests/swfs/avm2/resolve_order/test.swf new file mode 100644 index 000000000..90e6d21d8 Binary files /dev/null and b/tests/tests/swfs/avm2/resolve_order/test.swf differ diff --git a/tests/tests/swfs/avm2/resolve_order/test.toml b/tests/tests/swfs/avm2/resolve_order/test.toml new file mode 100644 index 000000000..dbee897f5 --- /dev/null +++ b/tests/tests/swfs/avm2/resolve_order/test.toml @@ -0,0 +1 @@ +num_frames = 1