mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-28 20:44:55 +00:00
added air as3 test
as3 decompile tests moved to special directory
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
package com.jpexs.decompiler.flash;
|
||||
package com.jpexs.decompiler.flash.as3decompile;
|
||||
|
||||
import com.jpexs.decompiler.flash.ActionScript3DecompileTestBase;
|
||||
import java.io.IOException;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.jpexs.decompiler.flash;
|
||||
package com.jpexs.decompiler.flash.as3decompile;
|
||||
|
||||
import com.jpexs.decompiler.flash.ActionScript3DecompileTestBase;
|
||||
import com.jpexs.decompiler.flash.abc.ABC;
|
||||
import com.jpexs.decompiler.flash.abc.ScriptPack;
|
||||
import com.jpexs.decompiler.flash.abc.types.ConvertData;
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
||||
package com.jpexs.decompiler.flash;
|
||||
package com.jpexs.decompiler.flash.as3decompile;
|
||||
|
||||
import com.jpexs.decompiler.flash.ActionScript3DecompileTestBase;
|
||||
import java.io.IOException;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.jpexs.decompiler.flash;
|
||||
package com.jpexs.decompiler.flash.as3decompile;
|
||||
|
||||
import com.jpexs.decompiler.flash.ActionScript3DecompileTestBase;
|
||||
import java.io.IOException;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.DataProvider;
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.jpexs.decompiler.flash;
|
||||
package com.jpexs.decompiler.flash.as3decompile;
|
||||
|
||||
import com.jpexs.decompiler.flash.ActionScript3DecompileTestBase;
|
||||
import java.io.IOException;
|
||||
import org.testng.annotations.BeforeClass;
|
||||
import org.testng.annotations.Test;
|
||||
@@ -60,8 +60,9 @@ public class AS3Generator {
|
||||
for (ScriptPack pack : scriptPacks) {
|
||||
sortedPacks.put(pack.getClassPath().toRawString(), pack);
|
||||
}
|
||||
s.append("package com.jpexs.decompiler.flash;\r\n");
|
||||
s.append("package com.jpexs.decompiler.flash.as3decompile;\r\n");
|
||||
s.append("\r\n");
|
||||
s.append("import com.jpexs.decompiler.flash.ActionScript3DecompileTestBase;\r\n");
|
||||
s.append("import java.io.IOException;\r\n");
|
||||
s.append("import org.testng.annotations.BeforeClass;\r\n");
|
||||
if (multipleProviders) {
|
||||
@@ -162,7 +163,7 @@ public class AS3Generator {
|
||||
}
|
||||
|
||||
s.append("}\r\n");
|
||||
String testPath = "test/com/jpexs/decompiler/flash/";
|
||||
String testPath = "test/com/jpexs/decompiler/flash/as3decompile/";
|
||||
Helper.writeFile(testPath + testClassName + ".java", s.toString().getBytes("UTF-8"));
|
||||
}
|
||||
|
||||
@@ -172,6 +173,8 @@ public class AS3Generator {
|
||||
|
||||
|
||||
useFile("ActionScript3ClassicDecompileTest", new String[][]{{"testdata/as3_new/bin/as3_new.flex.swf", "classic"}}, false);
|
||||
useFile("ActionScript3ClassicAirDecompileTest", new String[][]{{"testdata/as3_new/bin/as3_new.air.swf", "classic_air"}}, false);
|
||||
|
||||
useFile("ActionScript3CrossCompileDecompileTest", new String[][]{
|
||||
{"testdata/as3_cross_compile/bin/as3_cross_compile.flex.swf", "flex"},
|
||||
{"testdata/as3_cross_compile/bin/as3_cross_compile.air.swf", "air"}
|
||||
|
||||
Reference in New Issue
Block a user