tag tree context menu deselected the selected nodes earlier. Now it preserves the selection, and applies the command for all selected nodes => removing multiple items.

This commit is contained in:
Honfika
2013-09-03 21:40:06 +02:00
parent 06a890b2c4
commit 59e106091e
6 changed files with 92 additions and 24 deletions

View File

@@ -78,11 +78,21 @@ public class ExportTest {
}
@Test(dataProvider = "swfFiles")
public void testDecompile(File f) {
public void testDecompileAS(File f) {
testDecompile(f, false);
}
@Test(dataProvider = "swfFiles")
public void testDecompilePcode(File f) {
testDecompile(f, true);
}
public void testDecompile(File f, boolean isPcode) {
try {
SWF swf = new SWF(new FileInputStream(f), false);
Configuration.DEBUG_COPY = true;
File fdir = new File(TESTDATADIR + File.separator + "output" + File.separator + f.getName());
String folderName = isPcode ? "outputp" : "output";
File fdir = new File(TESTDATADIR + File.separator + folderName + File.separator + f.getName());
fdir.mkdirs();
swf.exportActionScript(new AbortRetryIgnoreHandler() {
@@ -96,7 +106,7 @@ public class ExportTest {
return this;
}
}, fdir.getAbsolutePath(), false, false);
}, fdir.getAbsolutePath(), isPcode, false);
} catch (Exception ex) {
fail();
}