X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=lib%2Fas3%2Fok%2Fxml.as;h=a7e6428f9cc7518f2459de3e13aa7ccfd1f1473a;hb=3e8c263456822a1f6d47ac7ac2133b2d631f2431;hp=cb9b68bf7d990a0d127301b050e5cf2fcc03e35d;hpb=e4687b3aa2aed49fb16ba9e9561344d808750297;p=swftools.git
diff --git a/lib/as3/ok/xml.as b/lib/as3/ok/xml.as
index cb9b68b..a7e6428 100644
--- a/lib/as3/ok/xml.as
+++ b/lib/as3/ok/xml.as
@@ -2,7 +2,7 @@ package {
import flash.display.MovieClip
public class Main extends flash.display.MovieClip {
var count:int = 1;
- var num:int = 29;
+ var num:int = 31;
function assert(b:Boolean) {
if(b) {
trace("ok "+count+"/"+num);
@@ -117,6 +117,10 @@ package {
assert(x10 != x11);
x11.b.@a = "x";
assert(x10 == x11);
+ x11.b.@["a"] = "y";
+ assert(x10 != x11);
+ x11.b.@["a"] = "x";
+ assert(x10 == x11);
var x12:XML = ;
x12.a += ;
@@ -142,7 +146,9 @@ package {
/* ----- special characters ----- */
- var x20 = > & ;
+ trace("[special characters]");
+
+ var x20 = >& ;
assert(x20.toString() == ">&");
var x21 = ;
assert(x21.@a == "\"<>");
@@ -150,8 +156,10 @@ package {
/* ----- substitution ----- */
- var x2:XML = <{"tree"} {"na"+"me"}="test">
- <{{3: "branch"}[3]} bname={"t1"}>{"Branch" + " " + 1}{"branch"}>
+ trace("[substitution]");
+ x1.@t = "x";
+ var x2:XML = <{"tree"} {"na"+"me"}="test" {"t=\"x\""}>
+ <{{three: "branch"}["three"]} bname={"t1"}>{"Branch" + " " + 1}{"branch"}>
Branch 2
assert(x1 == x2);