tests fixed

This commit is contained in:
Honfika
2013-11-07 23:05:15 +01:00
parent 43ab7dbc55
commit 50df6db4f8
9 changed files with 35 additions and 14 deletions

View File

@@ -3,12 +3,15 @@ package com.jpexs.decompiler.flash;
import com.jpexs.decompiler.flash.action.Action;
import com.jpexs.decompiler.flash.action.parser.ParseException;
import com.jpexs.decompiler.flash.action.parser.pcode.ASMParser;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.decompiler.flash.helpers.HilightedTextWriter;
import com.jpexs.decompiler.flash.tags.DoActionTag;
import com.jpexs.decompiler.graph.ExportMode;
import java.io.FileInputStream;
import java.io.IOException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import static org.testng.Assert.*;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
@@ -21,7 +24,7 @@ public class ActionScript2AssemblerTest extends ActionStript2TestBase {
@BeforeClass
public void init() throws IOException {
Configuration.setConfig("autoDeobfuscate", false);
Configuration.autoDeobfuscate.set(false);
swf = new SWF(new FileInputStream("testdata/as2/as2.swf"), false);
}
@@ -49,7 +52,7 @@ public class ActionScript2AssemblerTest extends ActionStript2TestBase {
assertEquals(actualResult.trim(), "ok = false;");
assertTrue(decompiled.contains("Push \"ok\" false"));
} catch (IOException | ParseException ex) {
} catch (IOException | ParseException | InterruptedException ex) {
fail();
}
}