mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-27 05:44:51 +00:00
Move items from Debug tab in advanced settings to other tabs to avoid acidentally setting it,
reseting most of them by renaming.
This commit is contained in:
@@ -41,6 +41,7 @@ public class RecompileTest extends FileTestBase {
|
||||
@BeforeClass
|
||||
public void init() {
|
||||
Configuration.autoDeobfuscate.set(false);
|
||||
Configuration.simplifyExpressions.set(false);
|
||||
}
|
||||
|
||||
public static final String TESTDATADIR = "testdata/recompile";
|
||||
@@ -48,7 +49,7 @@ public class RecompileTest extends FileTestBase {
|
||||
@Test(dataProvider = "provideFiles")
|
||||
public void testAS3InstructionParsing(String filePath) {
|
||||
try {
|
||||
Configuration.debugCopy.set(false);
|
||||
Configuration._debugCopy.set(false);
|
||||
try (FileInputStream fis = new FileInputStream(filePath)) {
|
||||
SWF swf = new SWF(new BufferedInputStream(fis), false);
|
||||
for (ABCContainerTag abcTag : swf.getAbcList()) {
|
||||
@@ -69,7 +70,7 @@ public class RecompileTest extends FileTestBase {
|
||||
public void testRecompile(String filePath) {
|
||||
try {
|
||||
try (FileInputStream fis = new FileInputStream(filePath)) {
|
||||
Configuration.debugCopy.set(true);
|
||||
Configuration._debugCopy.set(true);
|
||||
SWF swf = new SWF(new BufferedInputStream(fis), false);
|
||||
swf.saveTo(new ByteArrayOutputStream());
|
||||
}
|
||||
@@ -83,7 +84,7 @@ public class RecompileTest extends FileTestBase {
|
||||
@Test(dataProvider = "provideFiles")
|
||||
public void testTagEditing(String filePath) throws IOException, InterruptedException {
|
||||
try {
|
||||
Configuration.debugCopy.set(false);
|
||||
Configuration._debugCopy.set(false);
|
||||
SWF swf = new SWF(new BufferedInputStream(new FileInputStream(filePath)), false, false);
|
||||
for (Tag tag : swf.getTags()) {
|
||||
if (!(tag instanceof TagStub)) {
|
||||
|
||||
Reference in New Issue
Block a user