[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-476-g2bbca0e |
Date: |
Wed, 13 Jul 2011 12:26:31 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".
The branch, master has been updated
via 2bbca0eaf50b8e2ac40d7a9a389d83ab27573573 (commit)
from 7c063ad0bf360d33ebc721717de7c2516ad0d470 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=2bbca0eaf50b8e2ac40d7a9a389d83ab27573573
commit 2bbca0eaf50b8e2ac40d7a9a389d83ab27573573
Author: Sandro Santilli <address@hidden>
Date: Wed Jul 13 14:22:06 2011 +0200
Add a trace-based test for _root.onLoad user-function execution order
This is likely already tested elsewhere, but since I've been working
on it trying to prove Gnash wrong (see bug #33521) I tought I'd add
it nonetheless.
diff --git a/testsuite/misc-swfmill.all/trace-as2/Makefile.am
b/testsuite/misc-swfmill.all/trace-as2/Makefile.am
index 3b1e780..ea4d3aa 100644
--- a/testsuite/misc-swfmill.all/trace-as2/Makefile.am
+++ b/testsuite/misc-swfmill.all/trace-as2/Makefile.am
@@ -27,13 +27,10 @@ TRACE_TESTS = \
super.xml \
this.xml \
arguments.xml \
+ root_onload.xml \
$(NULL)
-TRACE_TRACES = \
- super.trace \
- this.trace \
- arguments.trace \
- $(NULL)
+TRACE_TRACES = $(TRACE_TESTS:.xml=.trace)
EXTRA_DIST = \
$(TRACE_TESTS) \
diff --git a/testsuite/misc-swfmill.all/trace-as2/PASSING
b/testsuite/misc-swfmill.all/trace-as2/PASSING
index bde15da..8d7139b 100644
--- a/testsuite/misc-swfmill.all/trace-as2/PASSING
+++ b/testsuite/misc-swfmill.all/trace-as2/PASSING
@@ -1,3 +1,4 @@
arguments
super
this
+root_onload
diff --git a/testsuite/misc-swfmill.all/trace-as2/root_onload.trace
b/testsuite/misc-swfmill.all/trace-as2/root_onload.trace
new file mode 100644
index 0000000..96d1653
--- /dev/null
+++ b/testsuite/misc-swfmill.all/trace-as2/root_onload.trace
@@ -0,0 +1,4 @@
+CC.
+C.
+R.
+L.
diff --git a/testsuite/misc-swfmill.all/trace-as2/root_onload.xml
b/testsuite/misc-swfmill.all/trace-as2/root_onload.xml
new file mode 100644
index 0000000..a7ed851
--- /dev/null
+++ b/testsuite/misc-swfmill.all/trace-as2/root_onload.xml
@@ -0,0 +1,96 @@
+<?xml version="1.0"?>
+<swf version="6" compressed="1">
+
+<!--
+ |
+ | This file test order of execution between
+ | onLoad root event, actions in root frame0 and
+ | actions in child and grandchild frame0.
+ |
+ | We expect: child.child, child, _root, _root.onload
+ |
+-->
+ <Header framerate="1" frames="1">
+ <size>
+ <Rectangle left="0" right="12800" top="0" bottom="9600"/>
+ </size>
+ <tags>
+
+ <DefineSprite objectID="1" frames="1">
+ <tags>
+
+ <!--
+ | Child frame0 actions
+ -->
+ <DoAction><actions>
+ <PushData>
+ <items> <StackString value="CC."/> </items>
+ </PushData>
+ <Trace/><EndAction/>
+ </actions> </DoAction>
+ <ShowFrame/>
+ <End/>
+ </tags>
+ </DefineSprite>
+
+ <DefineSprite objectID="2" frames="1">
+ <tags>
+
+ <!--
+ | Place the first sprite
+ -->
+ <PlaceObject2 replace="0" depth="1" objectID="1"> </PlaceObject2>
+
+ <!--
+ | Child frame0 actions
+ -->
+ <DoAction><actions>
+ <PushData>
+ <items> <StackString value="C."/> </items>
+ </PushData>
+ <Trace/><EndAction/>
+ </actions> </DoAction>
+ <ShowFrame/>
+ <End/>
+ </tags>
+ </DefineSprite>
+
+ <!--
+ | Place the first sprite
+ -->
+ <PlaceObject2 replace="0" depth="1" objectID="2"> </PlaceObject2>
+
+ <!--
+ | Root frame0 actions
+ -->
+ <DoAction><actions>
+
+ <PushData>
+ <items> <StackString value="R."/> </items>
+ </PushData>
+ <Trace/>
+
+ <!--
+ | Rot's onLoad function definition
+ -->
+ <DeclareFunction name="onLoad" argc="0" length="8">
+ <args/>
+ </DeclareFunction>
+ <PushData>
+ <items>
+ <StackString value="L."/>
+ </items>
+ </PushData>
+ <Trace/>
+
+ <EndAction/>
+
+ </actions> </DoAction>
+
+ <ShowFrame/>
+
+ <End/>
+
+ </tags>
+ </Header>
+</swf>
-----------------------------------------------------------------------
Summary of changes:
testsuite/misc-swfmill.all/trace-as2/Makefile.am | 7 +-
testsuite/misc-swfmill.all/trace-as2/PASSING | 1 +
.../misc-swfmill.all/trace-as2/root_onload.trace | 4 +
.../misc-swfmill.all/trace-as2/root_onload.xml | 96 ++++++++++++++++++++
4 files changed, 103 insertions(+), 5 deletions(-)
create mode 100644 testsuite/misc-swfmill.all/trace-as2/root_onload.trace
create mode 100644 testsuite/misc-swfmill.all/trace-as2/root_onload.xml
hooks/post-receive
--
Gnash
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-476-g2bbca0e,
Sandro Santilli <=