unused imports removed, code formatting, recompile test reverted

This commit is contained in:
Honfika
2014-03-01 20:15:37 +01:00
parent 58cb55e241
commit 156c9c7dc1
47 changed files with 148 additions and 177 deletions

View File

@@ -61,7 +61,7 @@ public class RecompileTest {
}
}
//@Test
@Test
public void testRecompile() {
File dir = new File(TESTDATADIR);
if (!dir.exists()) {
@@ -95,8 +95,7 @@ public class RecompileTest {
try {
asm.setActions(par.actionsFromString(as));
} catch (ParseException ex) {
String a = as;
//fail("Unable to parse: " + item.getSwf().getShortFileName() + "/" + item.toString());
fail("Unable to parse: " + item.getSwf().getShortFileName() + "/" + item.toString());
}
writer = new HilightedTextWriter(new CodeFormatting(), false);
Action.actionsToSource(asm, asm.getActions(), asm.toString()/*FIXME?*/, writer);
@@ -104,14 +103,13 @@ public class RecompileTest {
try {
asm.setActions(par.actionsFromString(as2));
} catch (ParseException ex) {
String a = as;
//fail("Unable to parse: " + item.getSwf().getShortFileName() + "/" + item.toString());
fail("Unable to parse: " + item.getSwf().getShortFileName() + "/" + item.toString());
}
writer = new HilightedTextWriter(new CodeFormatting(), false);
Action.actionsToSource(asm, asm.getActions(), asm.toString()/*FIXME?*/, writer);
String as3 = writer.toString();
if (!as3.equals(as2)) {
//fail("ActionScript is diffrent: " + item.getSwf().getShortFileName() + "/" + item.toString());
fail("ActionScript is diffrent: " + item.getSwf().getShortFileName() + "/" + item.toString());
}
} catch (InterruptedException | IOException | OutOfMemoryError | TranslateException | StackOverflowError ex) {
}