mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-17 18:38:12 +00:00
This commit is contained in:
@@ -17,6 +17,7 @@ package
|
||||
public class Main extends Sprite
|
||||
{
|
||||
TestActivationArguments;
|
||||
TestAlwaysBreak;
|
||||
TestAndOrCoercion;
|
||||
TestArguments;
|
||||
TestBitwiseOperands;
|
||||
@@ -45,6 +46,7 @@ package
|
||||
TestDoWhile2;
|
||||
TestDoWhile3;
|
||||
TestDoWhile4;
|
||||
TestDoWhileTwice;
|
||||
TestExecutionOrder;
|
||||
TestExpressions;
|
||||
TestFinallyZeroJump;
|
||||
|
||||
31
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestAlwaysBreak.as
vendored
Normal file
31
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestAlwaysBreak.as
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestAlwaysBreak
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
while(true)
|
||||
{
|
||||
var v = 5;
|
||||
trace("a");
|
||||
if(v > 4)
|
||||
{
|
||||
trace("b");
|
||||
if(v > 10)
|
||||
{
|
||||
trace("c");
|
||||
break; //standard "break", should lead to "f"
|
||||
}
|
||||
else
|
||||
{
|
||||
trace("d");
|
||||
}
|
||||
}
|
||||
trace("e");
|
||||
break; //"always break loop"
|
||||
}
|
||||
trace("f");
|
||||
}
|
||||
}
|
||||
}
|
||||
30
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestDoWhileTwice.as
vendored
Normal file
30
libsrc/ffdec_lib/testdata/as3_new/src/tests/TestDoWhileTwice.as
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
package tests
|
||||
{
|
||||
|
||||
public class TestDoWhileTwice
|
||||
{
|
||||
public function run():*
|
||||
{
|
||||
var a = 1;
|
||||
var b = 2;
|
||||
do {
|
||||
do {
|
||||
if (a) {
|
||||
trace("x");
|
||||
if (b) {
|
||||
break;
|
||||
}
|
||||
trace("y");
|
||||
}
|
||||
trace("z");
|
||||
}while(true);
|
||||
trace("g");
|
||||
if (b) {
|
||||
break;
|
||||
}
|
||||
trace("h");
|
||||
}while(true);
|
||||
trace("finish");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user