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() {
if(dataBuffer)
break;
}
- trace("ok 1/9");
+ trace("ok 2/10");
}
public function test2() {
while(output.length<1) {
output += "abc".charAt(0);
}
- trace("ok 2/9");
+ trace("ok 3/10");
}
public function test3() {
}
break;
}
- trace("ok 3/9");
+ trace("ok 4/10");
}
public var b:Boolean = false;
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";
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();