~ubuntu-branches/ubuntu/jaunty/swfdec0.8/jaunty

« back to all changes in this revision

Viewing changes to test/trace/newmethod-undefined.as

  • Committer: Package Import Robot
  • Author(s): Didier Roche
  • Date: 2008-10-10 19:15:24 UTC
  • Revision ID: package-import@ubuntu.com-20081010191524-5z85qiky1d4bvgfa
Tags: upstream-0.8.0
ImportĀ upstreamĀ versionĀ 0.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// makeswf -v 7 -s 200x150 -r 1 -o newmethod-undefined.swf newmethod-undefined.as
 
2
 
 
3
foo = function () {
 
4
  trace ("w00t");
 
5
};
 
6
 
 
7
test = function (v) {
 
8
  trace (">>> " + v + " (" + typeof (v) + "}");
 
9
  asm {
 
10
    push 0, "foo"
 
11
    getvariable
 
12
    push "v"
 
13
    getvariable
 
14
    newmethod
 
15
    pop
 
16
  };
 
17
};
 
18
 
 
19
test (undefined);
 
20
test ("");
 
21
test (null);
 
22
test ({ valueOf: function () { trace ("valueOf"); return ""; }, toString: function () { trace ("toString"); return ""; } });
 
23
 
 
24
loadMovie ("FSCommand:quit", "");