+1 AS2 test

This commit is contained in:
honfika@gmail.com
2015-10-29 08:49:53 +01:00
parent 1d3f50dbe2
commit f726b5677e

View File

@@ -305,6 +305,32 @@ public class ActionScript2ModificationTest extends ActionStript2TestBase {
testAddAction(actionsString, expectedResult, new ActionGetMember(), 7);
}
@Test
public void testAddActionAfterContainer() {
String actionsString
= "ConstantPool\n"
+ "DefineFunction \"test\" 1 \"p1\" {\n"
+ "Push 1\n"
+ "GetVariable\n"
+ "}\n"
+ "Push 2\n"
+ "If label_1\n"
+ "Push 3\n"
+ "label_1:Push 4";
String expectedResult
= "ConstantPool\n"
+ "DefineFunction \"test\" 1 \"p1\" {\n"
+ "Push 1\n"
+ "GetVariable\n"
+ "}\n"
+ "GetMember\n"
+ "Push 2\n"
+ "If label_1\n"
+ "Push 3\n"
+ "label_1:Push 4";
testAddAction(actionsString, expectedResult, new ActionGetMember(), 4);
}
@Test
public void testAddToJumpTarget() {
String actionsString