tests: Test XML.hasOwnProperty
This commit is contained in:
parent
791081051f
commit
69134d7d8d
|
@ -0,0 +1,12 @@
|
|||
package {
|
||||
import flash.display.Sprite;
|
||||
public class Test extends Sprite { }
|
||||
}
|
||||
|
||||
var xml: XML = <a attr="1"><b>bbb</b></a>;
|
||||
trace('xml.hasOwnProperty("@attr"): ' + xml.hasOwnProperty("@attr"));
|
||||
trace('xml.hasOwnProperty("@unknown"): ' + xml.hasOwnProperty("@unknown"));
|
||||
trace('xml.hasOwnProperty("b"): ' + xml.hasOwnProperty("b"));
|
||||
trace('xml.hasOwnProperty("em"): ' + xml.hasOwnProperty("em"));
|
||||
trace('xml.hasOwnProperty("toXMLString"): ' + xml.hasOwnProperty("toXMLString"));
|
||||
trace('xml.hasOwnProperty("isPropertyEnumerable"): ' + xml.hasOwnProperty("isPropertyEnumerable"));
|
|
@ -0,0 +1,6 @@
|
|||
xml.hasOwnProperty("@attr"): true
|
||||
xml.hasOwnProperty("@unknown"): false
|
||||
xml.hasOwnProperty("b"): true
|
||||
xml.hasOwnProperty("em"): false
|
||||
xml.hasOwnProperty("toXMLString"): false
|
||||
xml.hasOwnProperty("isPropertyEnumerable"): false
|
Binary file not shown.
|
@ -0,0 +1 @@
|
|||
num_frames = 1
|
Loading…
Reference in New Issue