You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2020/05/06 11:55:49 UTC
[royale-asjs] 06/07: Add another test that relates to the location
of the 'replacement'
This is an automated email from the ASF dual-hosted git repository.
harbs pushed a commit to branch release/0.9.7
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit dcfa3e8cbe4ac6e308dc98d07418fb6f662d464a
Author: greg-dove <gr...@gmail.com>
AuthorDate: Wed May 6 08:02:24 2020 +1200
Add another test that relates to the location of the 'replacement'
---
.../src/test/royale/flexUnitTests/xml/XMLTesterGeneralTest.as | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/frameworks/projects/XML/src/test/royale/flexUnitTests/xml/XMLTesterGeneralTest.as b/frameworks/projects/XML/src/test/royale/flexUnitTests/xml/XMLTesterGeneralTest.as
index 9539581..219b651 100644
--- a/frameworks/projects/XML/src/test/royale/flexUnitTests/xml/XMLTesterGeneralTest.as
+++ b/frameworks/projects/XML/src/test/royale/flexUnitTests/xml/XMLTesterGeneralTest.as
@@ -1308,6 +1308,17 @@ package flexUnitTests.xml
' <foobazzer/>\n' +
' <foo/>\n' +
'</root>', 'unexpected XMLList assignment');
+
+
+ xml =<root><foo/><foobaz/><foo/><foobaz/><foo/></root>;
+ xml.foobaz = xmlList;
+ assertEquals(xml.toXMLString(), '<root>\n' +
+ ' <foo/>\n' +
+ ' <foobazzer/>\n' +
+ ' <foobazzer/>\n' +
+ ' <foo/>\n' +
+ ' <foo/>\n' +
+ '</root>', 'unexpected XMLList assignment');
}
//@todo - Passes in Swf, fails in browser: