tests: Check XML/XMLList.parent() in xml_list_concat
This commit is contained in:
parent
02d815e86b
commit
04aa060c61
|
@ -38,12 +38,22 @@ var xml: XML = new XML("<a><b>A</b></a>");
|
||||||
var list: XMLList = new XMLList("<c><d>B</d></c>");
|
var list: XMLList = new XMLList("<c><d>B</d></c>");
|
||||||
|
|
||||||
trace("XML + XMLList");
|
trace("XML + XMLList");
|
||||||
trace(xml + list);
|
|
||||||
|
var out:XMLList = xml + list;
|
||||||
|
trace(out);
|
||||||
|
trace(out[0].parent());
|
||||||
|
trace(out[1].parent());
|
||||||
|
|
||||||
trace("XMLList + XML");
|
trace("XMLList + XML");
|
||||||
trace(list + xml);
|
var out:XMLList = list + xml;
|
||||||
|
trace(out);
|
||||||
|
trace(out[0].parent());
|
||||||
|
trace(out[1].parent());
|
||||||
|
|
||||||
trace("XML + XML");
|
trace("XML + XML");
|
||||||
var xml2: XML = new XML("<c>D</c>");
|
var xml2: XML = new XML("<c>D</c>");
|
||||||
|
var out:XMLList = xml2 + xml;
|
||||||
|
trace(out);
|
||||||
|
trace(out[0].parent());
|
||||||
|
trace(out[1].parent());
|
||||||
|
|
||||||
trace(xml2 + xml);
|
|
||||||
|
|
|
@ -6,9 +6,15 @@ XMLList + XMLList
|
||||||
XML + XMLList
|
XML + XMLList
|
||||||
<a><b>A</b></a>
|
<a><b>A</b></a>
|
||||||
<c><d>B</d></c>
|
<c><d>B</d></c>
|
||||||
|
undefined
|
||||||
|
undefined
|
||||||
XMLList + XML
|
XMLList + XML
|
||||||
<c><d>B</d></c>
|
<c><d>B</d></c>
|
||||||
<a><b>A</b></a>
|
<a><b>A</b></a>
|
||||||
|
undefined
|
||||||
|
undefined
|
||||||
XML + XML
|
XML + XML
|
||||||
<c>D</c>
|
<c>D</c>
|
||||||
<a><b>A</b></a>
|
<a><b>A</b></a>
|
||||||
|
undefined
|
||||||
|
undefined
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue