add test for frames and bytes properties of empty movies
[swfdec.git] / test / trace / callmethod-undefined-this.as
blob441bbc53e405d6743a96a331bedd96d86094c272
1 // makeswf -v 7 -s 200x150 -r 1 -o callmethod-undefined-this.swf callmethod-undefined-this.as
3 trace ("Test the behaviour of CallMethod with a function name of undefined or \"\"");
4 function foo () {
5 trace (this);
6 this.x = 15;
7 trace (this.x);
8 return this;
9 };
10 asm {
11 push 0, "foo"
12 getvariable
13 push undefined
14 callmethod
15 trace
17 asm {
18 push 0, "foo"
19 getvariable
20 push ""
21 callmethod
22 trace
25 loadMovie ("FSCommand:quit", "");