git.asbjorn.biz
/
swftools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added pdf2pdf tool
[swftools.git]
/
lib
/
as3
/
ok
/
reconcile.as
diff --git
a/lib/as3/ok/reconcile.as
b/lib/as3/ok/reconcile.as
index
3c99727
..
5204962
100644
(file)
--- a/
lib/as3/ok/reconcile.as
+++ b/
lib/as3/ok/reconcile.as
@@
-4,6
+4,14
@@
public class Main extends flash.display.MovieClip {
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() {
// test whether local variables with default value "null"
// will be coerced to their object
public function test1() {
@@
-13,7
+21,7
@@
if(dataBuffer)
break;
}
if(dataBuffer)
break;
}
- trace("ok 1/9");
+ trace("ok 2/10");
}
public function test2() {
}
public function test2() {
@@
-21,7
+29,7
@@
while(output.length<1) {
output += "abc".charAt(0);
}
while(output.length<1) {
output += "abc".charAt(0);
}
- trace("ok 2/9");
+ trace("ok 3/10");
}
public function test3() {
}
public function test3() {
@@
-32,7
+40,7
@@
}
break;
}
}
break;
}
- trace("ok 3/9");
+ trace("ok 4/10");
}
public var b:Boolean = false;
}
public var b:Boolean = false;
@@
-44,7
+52,7
@@
x = x+y;
y = y+x;
}
x = x+y;
y = y+x;
}
- trace("ok 4/9");
+ trace("ok 5/10");
}
public function test5() {
var x:int;
}
public function test5() {
var x:int;
@@
-54,19
+62,19
@@
x = x*y;
z = x*z;
}
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";
}
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;
}
}
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";
}
public function s():String {
return "x";
@@
-89,7
+97,7
@@
if(!b) {
i = s();
}
if(!b) {
i = s();
}
- trace("ok 8/9");
+ trace("ok 9/10");
}
public function test_add() {
}
public function test_add() {
@@
-189,10
+197,11
@@
z11a = array1+array2;
z11b = array1+array2;
}
z11a = array1+array2;
z11b = array1+array2;
}
- trace("ok 9/9");
+ trace("ok 10/10");
}
public function Main() {
}
public function Main() {
+ test0();
test1();
test2();
test3();
test1();
test2();
test3();