diff --git a/tests/tests/swfs/avm2/xml_tostring_namespace/Test.as b/tests/tests/swfs/avm2/xml_tostring_namespace/Test.as new file mode 100644 index 000000000000..8c34ede0bb97 --- /dev/null +++ b/tests/tests/swfs/avm2/xml_tostring_namespace/Test.as @@ -0,0 +1,23 @@ +package { + import flash.display.Sprite; + public class Test extends Sprite { } +} + +var xml = + + bar + +; + +trace("// xml.toXMLString()"); +trace(xml.toXMLString()); + +trace("// xml.child(0).toXMLString()"); +trace(xml.child(0).toXMLString()); + +trace("// xml.child(0).child(0).toXMLString()"); +trace(xml.child(0).child(0).toXMLString()); + +// TODO: Flash invents a prefix ... +// trace("// xml.child(0).child(0).copy().toXMLString()"); +// trace(xml.child(0).child(0).copy().toXMLString()); diff --git a/tests/tests/swfs/avm2/xml_tostring_namespace/output.txt b/tests/tests/swfs/avm2/xml_tostring_namespace/output.txt new file mode 100644 index 000000000000..05295022640c --- /dev/null +++ b/tests/tests/swfs/avm2/xml_tostring_namespace/output.txt @@ -0,0 +1,12 @@ +// xml.toXMLString() + + + bar + + +// xml.child(0).toXMLString() + + bar + +// xml.child(0).child(0).toXMLString() +bar diff --git a/tests/tests/swfs/avm2/xml_tostring_namespace/test.swf b/tests/tests/swfs/avm2/xml_tostring_namespace/test.swf new file mode 100644 index 000000000000..6d32974dc3c2 Binary files /dev/null and b/tests/tests/swfs/avm2/xml_tostring_namespace/test.swf differ diff --git a/tests/tests/swfs/avm2/xml_tostring_namespace/test.toml b/tests/tests/swfs/avm2/xml_tostring_namespace/test.toml new file mode 100644 index 000000000000..cf6123969a1d --- /dev/null +++ b/tests/tests/swfs/avm2/xml_tostring_namespace/test.toml @@ -0,0 +1 @@ +num_ticks = 1 diff --git a/tests/tests/swfs/from_avmplus/e4x/XML/e13_4_4_39/test.toml b/tests/tests/swfs/from_avmplus/e4x/XML/e13_4_4_39/test.toml index 29f3cef79022..cf6123969a1d 100644 --- a/tests/tests/swfs/from_avmplus/e4x/XML/e13_4_4_39/test.toml +++ b/tests/tests/swfs/from_avmplus/e4x/XML/e13_4_4_39/test.toml @@ -1,2 +1 @@ num_ticks = 1 -known_failure = true