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:
Jindra Petřík
2016-02-19 16:54:12 +01:00
parent 85c252e724
commit fed7439d18
4 changed files with 10 additions and 6 deletions

View File

@@ -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)) {