mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-04 12:55:34 +00:00
updated tests
Export test for exporting all files in testdata/decompile dir
This commit is contained in:
@@ -37,14 +37,14 @@ public class ActionScript2Test {
|
||||
|
||||
@BeforeClass
|
||||
public void init() throws IOException {
|
||||
swf = new SWF(new FileInputStream("testdata/as2/as2.swf"), false);
|
||||
Configuration.setConfig("autoDeobfuscate", false);
|
||||
swf = new SWF(new FileInputStream("testdata/as2/as2.swf"), false);
|
||||
}
|
||||
|
||||
private void compareSrc(int frame, String expectedResult) {
|
||||
DoActionTag doa = getFrameSource(frame);
|
||||
assertNotNull(doa);
|
||||
String actualResult = Highlighting.stripHilights(Action.actionsToSource(doa.getActions(swf.version), swf.version));
|
||||
String actualResult = Highlighting.stripHilights(Action.actionsToSource(doa.getActions(swf.version), swf.version,""));
|
||||
actualResult = actualResult.replaceAll("[ \r\n]", "");
|
||||
expectedResult = expectedResult.replaceAll("[ \r\n]", "");
|
||||
assertEquals(actualResult, expectedResult);
|
||||
|
||||
Reference in New Issue
Block a user