as3: added xml string substitution, variable scoping compatibility, optimizations
[swftools.git] / lib / as3 / ok / reconcile.as
index 3c99727..5204962 100644 (file)
@@ -4,6 +4,14 @@
 
        public class Main extends flash.display.MovieClip {
 
+            public function test0() {
+                // simple sanity test
+                while(false) {
+                    var x1:String;
+                }
+                trace("ok 1/10");
+            }
+
             // test whether local variables with default value "null"
             // will be coerced to their object
             public function test1() {
@@ -13,7 +21,7 @@
                     if(dataBuffer)
                         break;
                 }
-                trace("ok 1/9");
+                trace("ok 2/10");
             }
 
             public function test2() {
@@ -21,7 +29,7 @@
                 while(output.length<1) {
                     output += "abc".charAt(0);
                 }
-                trace("ok 2/9");
+                trace("ok 3/10");
             }
 
             public function test3() {
@@ -32,7 +40,7 @@
                     }
                     break;
                 }
-                trace("ok 3/9");
+                trace("ok 4/10");
             }
 
             public var b:Boolean = false;
@@ -44,7 +52,7 @@
                     x = x+y;
                     y = y+x;
                 }
-                trace("ok 4/9");
+                trace("ok 5/10");
             }
             public function test5() {
                 var x:int;
                     x = x*y;
                     z = x*z;
                 }
-                trace("ok 5/9");
+                trace("ok 6/10");
             }
             public function test6() {
                 var i:int = b?3.0:3;
                 var j:uint = b?3:"abc";
-                trace("ok 6/9");
+                trace("ok 7/10");
             }
             public function test7() {
                 var j:Number = 0;
                 if(b) {
                     j += 8;
                 }
-                trace("ok 7/9");
+                trace("ok 8/10");
             }
             public function s():String {
                 return "x";
@@ -89,7 +97,7 @@
                 if(!b) {
                     i = s();
                 }
-                trace("ok 8/9");
+                trace("ok 9/10");
             }
             
             public function test_add() {
                     z11a = array1+array2;
                     z11b = array1+array2;
                 }
-                trace("ok 9/9");
+                trace("ok 10/10");
             }
 
             public function Main() {
+                test0();
                 test1();
                 test2();
                 test3();