add test for frames and bytes properties of empty movies
[swfdec.git] / test / trace / try-jump.as
blob02187507c62ec9f8c2557d607882c4bd98dd0dac
1 // makeswf -v 7 -r 1 -o try-jump-7.swf try-jump.as
3 trace ("Test how Try action handles jumping out of the blocks");
5 function test() {
6 while (true) {
7 try {
8 break;
9 } catch (exception) {
10 trace ("inside: " + exception);
13 throw new Error ("test");
16 function test2() {
17 var i = 0;
18 while (true) {
19 if (i++ > 5)
20 throw new Error ("test2");
21 try {
22 throw new Error ("catch this");
23 } catch (exception) {
24 continue;
25 } finally {
26 trace ("finally");
31 try {
32 test ();
33 } catch (exception) {
34 trace ("outside: " + exception);
37 try {
38 test2 ();
39 } catch (exception) {
40 trace ("outside: " + exception);
43 loadMovie ("FSCommand:quit", "");