add test for frames and bytes properties of empty movies
[swfdec.git] / test / trace / initobject-stack.as
blob0397d1933bb73bda3e353ea9e50e0cec4d198221
1 // makeswf -v 7 -s 200x150 -r 1 -o initobject-stack.swf initobject-stack.as
3 trace ("Check that InitObject consumes the right amount of stack");
5 // Don't eat too much stack
6 asm {
7 push 3, 2, 1
8 };
9 o = { one:1, two:2 };
10 asm {
11 trace
12 trace
13 trace
16 // Don't try to eat nonexisting stack
17 asm {
18 push "hi", undefined, "undefined", 1, "one", 2, "two", 5
19 initobject
20 push "hi"
21 swap
22 setvariable
23 trace
25 trace (hi);
26 trace (hi.hasOwnProperty ("hi"));
27 trace (hi.hasOwnProperty ("undefined"));
29 loadMovie ("FSCommand:quit", "");