mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-29 01:15:36 +00:00
renamed new as3 test swfs to have as3 prefix and unique SWF name
This commit is contained in:
@@ -12,7 +12,7 @@ public class ActionScript3AssembledDecompileTest extends ActionScript3DecompileT
|
||||
|
||||
@BeforeClass
|
||||
public void init() throws IOException, InterruptedException {
|
||||
addSwf("assembled", "testdata/custom/bin/custom.swf");
|
||||
addSwf("assembled", "testdata/as3_assembled/bin/as3_assembled.swf");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -24,7 +24,7 @@ public class ActionScript3ClassTest extends ActionScript3DecompileTestBase {
|
||||
|
||||
@BeforeClass
|
||||
public void init() throws IOException, InterruptedException {
|
||||
addSwf("standard", "testdata/flashdevelop/bin/Main.flex.swf");
|
||||
addSwf("standard", "testdata/as3_new/bin/as3_new.flex.swf");
|
||||
}
|
||||
|
||||
private void decompileScriptPack(String path, String expectedResult) {
|
||||
@@ -55,6 +55,7 @@ public class ActionScript3ClassTest extends ActionScript3DecompileTestBase {
|
||||
expectedResult = cleanPCode(expectedResult);
|
||||
assertEquals(actualResult, expectedResult);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMyPackage1TestClass() {
|
||||
decompileScriptPack("tests_classes.mypackage1.TestClass", "package tests_classes.mypackage1\n"
|
||||
|
||||
@@ -12,7 +12,7 @@ public class ActionScript3ClassicDecompileTest extends ActionScript3DecompileTes
|
||||
|
||||
@BeforeClass
|
||||
public void init() throws IOException, InterruptedException {
|
||||
addSwf("classic", "testdata/flashdevelop/bin/Main.flex.swf");
|
||||
addSwf("classic", "testdata/as3_new/bin/as3_new.flex.swf");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -13,8 +13,8 @@ public class ActionScript3CrossCompileDecompileTest extends ActionScript3Decompi
|
||||
|
||||
@BeforeClass
|
||||
public void init() throws IOException, InterruptedException {
|
||||
addSwf("flex", "testdata/cross_compile/bin/Main.flex.swf");
|
||||
addSwf("air", "testdata/cross_compile/bin/Main.air.swf");
|
||||
addSwf("flex", "testdata/as3_cross_compile/bin/as3_cross_compile.flex.swf");
|
||||
addSwf("air", "testdata/as3_cross_compile/bin/as3_cross_compile.air.swf");
|
||||
}
|
||||
|
||||
@DataProvider
|
||||
|
||||
@@ -12,7 +12,7 @@ public class ActionScript3CrossCompileSwfToolsDecompileTest extends ActionScript
|
||||
|
||||
@BeforeClass
|
||||
public void init() throws IOException, InterruptedException {
|
||||
addSwf("swftools", "testdata/cross_compile/bin/Main.swftools.swf");
|
||||
addSwf("swftools", "testdata/as3_cross_compile/bin/as3_cross_compile.swftools.swf");
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
@@ -21,7 +21,7 @@ public class ActionScript3OptinalParametersTest extends ActionScript3DecompileTe
|
||||
|
||||
@BeforeClass
|
||||
public void init() throws IOException, InterruptedException {
|
||||
addSwf("standard", "testdata/flashdevelop/bin/Main.flex.swf");
|
||||
addSwf("standard", "testdata/as3_new/bin/as3_new.flex.swf");
|
||||
}
|
||||
@Test
|
||||
public void testOptionalParameters() {
|
||||
|
||||
@@ -170,14 +170,14 @@ public class AS3Generator {
|
||||
Configuration.autoDeobfuscate.set(false);
|
||||
|
||||
|
||||
useFile("ActionScript3ClassicDecompileTest", new String[][]{{"testdata/flashdevelop/bin/Main.flex.swf", "classic"}}, false);
|
||||
useFile("ActionScript3ClassicDecompileTest", new String[][]{{"testdata/as3_new/bin/as3_new.flex.swf", "classic"}}, false);
|
||||
useFile("ActionScript3CrossCompileDecompileTest", new String[][]{
|
||||
{"testdata/cross_compile/bin/Main.flex.swf", "flex"},
|
||||
{"testdata/cross_compile/bin/Main.air.swf", "air"}
|
||||
{"testdata/as3_cross_compile/bin/as3_cross_compile.flex.swf", "flex"},
|
||||
{"testdata/as3_cross_compile/bin/as3_cross_compile.air.swf", "air"}
|
||||
}, true);
|
||||
useFile("ActionScript3CrossCompileSwfToolsDecompileTest", new String[][]{
|
||||
{"testdata/cross_compile/bin/Main.swftools.swf", "swftools"},}, false);
|
||||
useFile("ActionScript3AssembledDecompileTest", new String[][]{{"testdata/custom/bin/custom.swf", "assembled"}}, false);
|
||||
{"testdata/as3_cross_compile/bin/as3_cross_compile.swftools.swf", "swftools"},}, false);
|
||||
useFile("ActionScript3AssembledDecompileTest", new String[][]{{"testdata/as3_assembled/bin/as3_assembled.swf", "assembled"}}, false);
|
||||
|
||||
System.exit(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user