[Swfdec] Branch 'as' - test/trace

Benjamin Otte company at kemper.freedesktop.org
Wed Jun 27 10:00:48 PDT 2007


 test/trace/Makefile.am                      |    5 +++++
 test/trace/setvariable-callback-6.swf       |binary
 test/trace/setvariable-callback-6.swf.trace |    4 ++++
 test/trace/setvariable-callback-7.swf       |binary
 test/trace/setvariable-callback-7.swf.trace |    4 ++++
 test/trace/setvariable-callback.as          |   14 ++++++++++++++
 6 files changed, 27 insertions(+)

New commits:
diff-tree 81472f980827d624a88339abd8db0e40c8aaf453 (from 1b7c22f283b8f66984a4e3e04102640f76ab0246)
Author: Benjamin Otte <otte at gnome.org>
Date:   Wed Jun 27 19:00:24 2007 +0200

    add another SetVariable test to check where the target is taken from

diff --git a/test/trace/Makefile.am b/test/trace/Makefile.am
index 95e4f4d..222665c 100644
--- a/test/trace/Makefile.am
+++ b/test/trace/Makefile.am
@@ -610,6 +610,11 @@ EXTRA_DIST = \
 	setinterval-this-7.swf.trace \
 	setvariable.swf \
 	setvariable.swf.trace \
+	setvariable-callback.as \
+	setvariable-callback-6.swf \
+	setvariable-callback-6.swf.trace \
+	setvariable-callback-7.swf \
+	setvariable-callback-7.swf.trace \
 	setvariable-function.as \
 	setvariable-function-5.swf \
 	setvariable-function-5.swf.trace \
diff --git a/test/trace/setvariable-callback-6.swf b/test/trace/setvariable-callback-6.swf
new file mode 100644
index 0000000..c137f8a
Binary files /dev/null and b/test/trace/setvariable-callback-6.swf differ
diff --git a/test/trace/setvariable-callback-6.swf.trace b/test/trace/setvariable-callback-6.swf.trace
new file mode 100644
index 0000000..7fa25ce
--- /dev/null
+++ b/test/trace/setvariable-callback-6.swf.trace
@@ -0,0 +1,4 @@
+Check SetVariable in callbacks sets variables on the target at function definition time
+undefined
+42
+undefined
diff --git a/test/trace/setvariable-callback-7.swf b/test/trace/setvariable-callback-7.swf
new file mode 100644
index 0000000..c209507
Binary files /dev/null and b/test/trace/setvariable-callback-7.swf differ
diff --git a/test/trace/setvariable-callback-7.swf.trace b/test/trace/setvariable-callback-7.swf.trace
new file mode 100644
index 0000000..7fa25ce
--- /dev/null
+++ b/test/trace/setvariable-callback-7.swf.trace
@@ -0,0 +1,4 @@
+Check SetVariable in callbacks sets variables on the target at function definition time
+undefined
+42
+undefined
diff --git a/test/trace/setvariable-callback.as b/test/trace/setvariable-callback.as
new file mode 100644
index 0000000..ad9be42
--- /dev/null
+++ b/test/trace/setvariable-callback.as
@@ -0,0 +1,14 @@
+// makeswf -v 7 -s 200x150 -r 1 -o setvariable-callback.swf setvariable-callback.as
+
+trace ("Check SetVariable in callbacks sets variables on the target at function definition time");
+
+createEmptyMovieClip ("movie", 0);
+
+movie.onEnterFrame = function () {
+  bla = 42;
+  trace (this.bla);
+  trace (_root.bla);
+  trace (_root.movie.bla);
+
+  loadMovie ("FSCommand:quit", "");
+};


More information about the Swfdec mailing list