test for removing extra jumps (currently fails), small issue with ActionEnd fixed

This commit is contained in:
Honfika
2013-10-12 12:49:06 +02:00
parent 34d99be471
commit ac7f4a6f17
7 changed files with 164 additions and 31 deletions

View File

@@ -16,9 +16,7 @@ import org.testng.annotations.Test;
*
* @author JPEXS
*/
public class ActionScript2AssemblerTest {
private SWF swf;
public class ActionScript2AssemblerTest extends ActionStript2TestBase {
@BeforeClass
public void init() throws IOException {
@@ -26,15 +24,6 @@ public class ActionScript2AssemblerTest {
swf = new SWF(new FileInputStream("testdata/as2/as2.swf"), false);
}
private DoActionTag getFirstActionTag() {
for (Tag t : swf.tags) {
if (t instanceof DoActionTag) {
return (DoActionTag) t;
}
}
return null;
}
@Test
public void testModifiedConstantPools() {
String actionsString = "ConstantPool \"ok\"\n" +