mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-23 00:55:49 +00:00
test: as1/2 maintain push order
This commit is contained in:
@@ -47,7 +47,7 @@ public class ActionScript2ClassesTest extends ActionScript2TestBase {
|
||||
Configuration.simplifyExpressions.set(false);
|
||||
Configuration.decompile.set(true);
|
||||
Configuration.registerNameFormat.set("_loc%d_");
|
||||
Configuration.skipDetectionOfUninitializedClassFields.set(false);
|
||||
Configuration.skipDetectionOfUninitializedClassFields.set(false);
|
||||
swf = new SWF(new BufferedInputStream(new FileInputStream("testdata/as2/as2.swf")), false);
|
||||
}
|
||||
|
||||
@@ -234,4 +234,22 @@ public class ActionScript2ClassesTest extends ActionScript2TestBase {
|
||||
+ " return 5;\n"
|
||||
+ " }");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnpopped() {
|
||||
compareSrc("TestUnpopped", "var a;\n"
|
||||
+ " var c = true;\n"
|
||||
+ " function TestUnpopped()\n"
|
||||
+ " {\n"
|
||||
+ " }\n"
|
||||
+ " function run()\n"
|
||||
+ " {\n"
|
||||
+ " §§push(this.a);\n"
|
||||
+ " trace(\"b\");\n"
|
||||
+ " if(this.c)\n"
|
||||
+ " {\n"
|
||||
+ " trace(\"c\");\n"
|
||||
+ " }\n"
|
||||
+ " }");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user