From ca3df10b2818ce03e4f7ec3ca55ab4eeb460a0f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jindra=20Pet=C5=99=C3=ADk?= Date: Fri, 29 Jan 2021 10:31:44 +0100 Subject: [PATCH] removed TestDup flex vs asc2 compiled tests --- .../decompiler/flash/ActionScript3Test.java | 18 ++++-------------- .../flashdevelop/bin/flashdevelop.swf | Bin 20163 -> 20105 bytes .../flashdevelop/bin/flashdevelop_asc2.swf | Bin 0 -> 15648 bytes .../flashdevelop/bin/flashdevelop_flex.swf | Bin 0 -> 20105 bytes .../testdata/flashdevelop/src/Main.as | 1 - .../flashdevelop/src/tests/TestDup.as | 18 ------------------ .../flashdevelop/src/tests/TestForXml.as | 2 +- .../flashdevelop/src/tests/TestNames.as | 2 ++ .../flashdevelop/src/tests/TestXml.as | 2 +- 9 files changed, 8 insertions(+), 35 deletions(-) create mode 100644 libsrc/ffdec_lib/testdata/flashdevelop/bin/flashdevelop_asc2.swf create mode 100644 libsrc/ffdec_lib/testdata/flashdevelop/bin/flashdevelop_flex.swf delete mode 100644 libsrc/ffdec_lib/testdata/flashdevelop/src/tests/TestDup.as diff --git a/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/ActionScript3Test.java b/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/ActionScript3Test.java index bd80c8257..7ba5ef577 100644 --- a/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/ActionScript3Test.java +++ b/libsrc/ffdec_lib/test/com/jpexs/decompiler/flash/ActionScript3Test.java @@ -12,7 +12,8 @@ * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public - * License along with this library. */ + * License along with this library. + */ package com.jpexs.decompiler.flash; import com.jpexs.decompiler.flash.abc.ABC; @@ -359,17 +360,6 @@ public class ActionScript3Test extends ActionScriptTestBase { false); } - @Test - public void testStandardDup() { - decompileMethod("standard", "testDup", "var a:Boolean = false;\r\n" - + "var b:Boolean = false;\r\n" - + "if(a = b)\r\n" - + "{\r\n" - + "trace(a);\r\n" - + "}\r\n", - false); - } - @Test public void testStandardExpressions() { decompileMethod("standard", "testExpressions", "var arr:Array = null;\r\n" @@ -587,7 +577,7 @@ public class ActionScript3Test extends ActionScriptTestBase { + "var len:int = 5;\r\n" + "var a:int = 5;\r\n" + "var b:int = 6;\r\n" - + "for(var i:int = 0; i < len; k = myXML.book.(@isbn = \"12345\"))\r\n" + + "for(var i:int = 0; i < len; k = myXML.book.(@isbn == \"12345\"))\r\n" + "{\r\n" + "c = 1;\r\n" + "if(c == 2)\r\n" @@ -1467,7 +1457,7 @@ public class ActionScript3Test extends ActionScriptTestBase { + "var k:* = myXML.@id;\r\n" + "var all:String = myXML.@*.toXMLString();\r\n" + "k = myXML.book;\r\n" - + "k = myXML.book.(@isbn = \"12345\");\r\n" + + "k = myXML.book.(@isbn == \"12345\");\r\n" + "g = "); }