mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-30 03:05:39 +00:00
Fixed #1894 AS3 - XML filters in some corner cases
This commit is contained in:
@@ -1875,6 +1875,9 @@ public class ActionScript3ClassicAirDecompileTest extends ActionScript3Decompile
|
||||
+ "var all:String = myXML.@*.toXMLString();\r\n"
|
||||
+ "k = myXML.book;\r\n"
|
||||
+ "k = myXML.book.(@isbn == \"12345\");\r\n"
|
||||
+ "var list:Vector.<int> = new Vector.<int>();\r\n"
|
||||
+ "var i:int = Math.random();\r\n"
|
||||
+ "list[i] = myXML.book.(@isbn == i + 1);\r\n"
|
||||
+ "var g:XML = <script>\r\n"
|
||||
+ "<![CDATA[\r\n"
|
||||
+ "function() {\r\n"
|
||||
|
||||
@@ -1864,7 +1864,9 @@ public class ActionScript3ClassicDecompileTest extends ActionScript3DecompileTes
|
||||
|
||||
@Test
|
||||
public void testXml() {
|
||||
decompileMethod("classic", "testXml", "var g:XML = null;\r\n"
|
||||
decompileMethod("classic", "testXml", "var list:Vector.<int> = null;\r\n"
|
||||
+ "var i:int = 0;\r\n"
|
||||
+ "var g:XML = null;\r\n"
|
||||
+ "var testCdata:XML = null;\r\n"
|
||||
+ "var testComment:XML = null;\r\n"
|
||||
+ "var name:String = \"ahoj\";\r\n"
|
||||
@@ -1877,6 +1879,9 @@ public class ActionScript3ClassicDecompileTest extends ActionScript3DecompileTes
|
||||
+ "var all:String = myXML.@*.toXMLString();\r\n"
|
||||
+ "k = myXML.book;\r\n"
|
||||
+ "k = myXML.book.(@isbn == \"12345\");\r\n"
|
||||
+ "list = new Vector.<int>();\r\n"
|
||||
+ "i = int(Math.random());\r\n"
|
||||
+ "list[i] = myXML.book.(@isbn == i + 1);\r\n"
|
||||
+ "g = <script>\r\n"
|
||||
+ "<![CDATA[\r\n"
|
||||
+ "function() {\r\n"
|
||||
|
||||
Reference in New Issue
Block a user