[Swfdec] Branch 'as' - test/trace

Benjamin Otte company at kemper.freedesktop.org
Fri Jul 6 03:11:50 PDT 2007


 test/trace/Makefile.am            |    7 +++++++
 test/trace/targetpath-5.swf       |binary
 test/trace/targetpath-5.swf.trace |    3 +++
 test/trace/targetpath-6.swf       |binary
 test/trace/targetpath-6.swf.trace |    3 +++
 test/trace/targetpath-7.swf       |binary
 test/trace/targetpath-7.swf.trace |    3 +++
 test/trace/targetpath.as          |   27 +++++++++++++++++++++++++++
 8 files changed, 43 insertions(+)

New commits:
diff-tree 6982d35c8223c70e0e2644710ac6ebc42f96901d (from 67cc4ffb0e6910ff8080bc6d7ddf41d0df4ed8d6)
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Jul 4 18:10:21 2007 +0100

    add a TargetPath test

diff --git a/test/trace/Makefile.am b/test/trace/Makefile.am
index 75c4967..423a732 100644
--- a/test/trace/Makefile.am
+++ b/test/trace/Makefile.am
@@ -745,6 +745,13 @@ EXTRA_DIST = \
 	super-calls-7.swf.trace \
 	super-calls-8.swf \
 	super-calls-8.swf.trace \
+	targetpath.as \
+	targetpath-5.swf \
+	targetpath-5.swf.trace \
+	targetpath-6.swf \
+	targetpath-6.swf.trace \
+	targetpath-7.swf \
+	targetpath-7.swf.trace \
 	tointeger-numbers.as \
 	tointeger-numbers-5.swf \
 	tointeger-numbers-5.swf.trace \
diff --git a/test/trace/targetpath-5.swf b/test/trace/targetpath-5.swf
new file mode 100644
index 0000000..6748dca
Binary files /dev/null and b/test/trace/targetpath-5.swf differ
diff --git a/test/trace/targetpath-5.swf.trace b/test/trace/targetpath-5.swf.trace
new file mode 100644
index 0000000..8628700
--- /dev/null
+++ b/test/trace/targetpath-5.swf.trace
@@ -0,0 +1,3 @@
+_level0
+undefined
+undefined
diff --git a/test/trace/targetpath-6.swf b/test/trace/targetpath-6.swf
new file mode 100644
index 0000000..3467076
Binary files /dev/null and b/test/trace/targetpath-6.swf differ
diff --git a/test/trace/targetpath-6.swf.trace b/test/trace/targetpath-6.swf.trace
new file mode 100644
index 0000000..86ce818
--- /dev/null
+++ b/test/trace/targetpath-6.swf.trace
@@ -0,0 +1,3 @@
+_level0
+_level0.foo
+_level0.foo.foo
diff --git a/test/trace/targetpath-7.swf b/test/trace/targetpath-7.swf
new file mode 100644
index 0000000..a0235a3
Binary files /dev/null and b/test/trace/targetpath-7.swf differ
diff --git a/test/trace/targetpath-7.swf.trace b/test/trace/targetpath-7.swf.trace
new file mode 100644
index 0000000..86ce818
--- /dev/null
+++ b/test/trace/targetpath-7.swf.trace
@@ -0,0 +1,3 @@
+_level0
+_level0.foo
+_level0.foo.foo
diff --git a/test/trace/targetpath.as b/test/trace/targetpath.as
new file mode 100644
index 0000000..497c870
--- /dev/null
+++ b/test/trace/targetpath.as
@@ -0,0 +1,27 @@
+// makeswf -v 7 -s 200x150 -r 1 -o targetpath.swf targetpath.as
+
+asm {
+  push "_root"
+  getvariable
+  targetpath
+  trace
+};
+createEmptyMovieClip ("foo", 0);
+asm {
+  push "foo"
+  getvariable
+  targetpath
+  trace
+};
+foo.createEmptyMovieClip ("foo", 0);
+asm {
+  push "foo"
+  getvariable
+  push "foo"
+  getmember
+  targetpath
+  trace
+};
+
+
+loadMovie ("FSCommand:quit", "");


More information about the Swfdec mailing list