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 test for finally
[swftools.git]
/
lib
/
as3
/
ok
/
if.as
diff --git
a/lib/as3/ok/if.as
b/lib/as3/ok/if.as
index
1d6c6e6
..
1504c27
100644
(file)
--- a/
lib/as3/ok/if.as
+++ b/
lib/as3/ok/if.as
@@
-1,15
+1,20
@@
-package test.mypackage {
+package {
import flash.display.MovieClip;
public class Main extends flash.display.MovieClip {
function Main() {
import flash.display.MovieClip;
public class Main extends flash.display.MovieClip {
function Main() {
- if(true) trace("ok 1/4");
+ if(true) trace("ok 1/5");
if(false) trace("error");
if(false) trace("error");
- if(1+1==2) trace("ok 2/4");
+ if(1+1==2) trace("ok 2/5");
if(1+1==3) trace("error");
if(1+1!=2) trace("error");
if(1+1==3) trace("error");
if(1+1!=2) trace("error");
- if(1+2==3) trace("ok 3/4");
+ if(1+2==3) trace("ok 3/5");
- if(1+1==3) {} else {trace("ok 4/4");}
+ if(1+1==3) {} else {trace("ok 4/5");}
+
+ if(false) trace("error");
+ else if(false) trace("error");
+ else if(true) trace("ok 5/5");
+ else if(false) trace("error");
}
}
}
}
}
}