gnash-commit
[Top][All Lists]
Advanced

[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-471-gf352478
Date: Tue, 12 Jul 2011 14:29:05 +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  f352478df2234c9526ccf386eed1d09e8f43768f (commit)
      from  1ae9584391b1ac1160448f4654e918f7107cff9d (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=f352478df2234c9526ccf386eed1d09e8f43768f


commit f352478df2234c9526ccf386eed1d09e8f43768f
Author: Sandro Santilli <address@hidden>
Date:   Tue Jul 12 16:28:34 2011 +0200

    Add test for constant pool and clip event code interaction (gnash fails)

diff --git a/testsuite/misc-swfmill.all/Makefile.am 
b/testsuite/misc-swfmill.all/Makefile.am
index 8e97db4..862d26c 100644
--- a/testsuite/misc-swfmill.all/Makefile.am
+++ b/testsuite/misc-swfmill.all/Makefile.am
@@ -49,6 +49,7 @@ SC_AS2_XMLTESTS = \
        afunc_dict.xml \
        dict_cross.xml \
        dict_callframe.xml \
+       dict_event.xml \
        initaction_in_definesprite.xml \
        zeroframe_definesprite.xml \
        background.xml \
@@ -99,6 +100,7 @@ check_SCRIPTS = \
        func_dict-runner \
        dict_cross-runner \
        dict_callframe-runner \
+       dict_event-runner \
        afunc_dict-runner \
        initaction_in_definesprite-runner \
        zeroframe_definesprite-runner \
@@ -140,6 +142,10 @@ dict_callframe-runner: $(srcdir)/../generic-testrunner.sh 
dict_callframe.swf Mak
        sh $(srcdir)/../generic-testrunner.sh -r 1 -c "END OF TEST" 
$(top_builddir) dict_callframe.swf > $@
        chmod 755 $@
 
+dict_event-runner: $(srcdir)/../generic-testrunner.sh dict_event.swf Makefile
+       sh $(srcdir)/../generic-testrunner.sh -r 1 -c "END OF TEST" 
$(top_builddir) dict_event.swf > $@
+       chmod 755 $@
+
 func_dict-runner: $(srcdir)/../generic-testrunner.sh func_dict.swf Makefile
        sh $(srcdir)/../generic-testrunner.sh -r 1 -c "END OF TEST" 
$(top_builddir) func_dict.swf > $@
        chmod 755 $@
diff --git a/testsuite/misc-swfmill.all/dict_event.xml 
b/testsuite/misc-swfmill.all/dict_event.xml
new file mode 100644
index 0000000..8c1bb2a
--- /dev/null
+++ b/testsuite/misc-swfmill.all/dict_event.xml
@@ -0,0 +1,122 @@
+<?xml version="1.0"?>
+<swf version="6" compressed="1">
+
+<!--
+  |
+  | Test how constant pools remain valid after calls to
+  | clip events.
+  |
+-->
+  <Header framerate="1" frames="1">
+    <size>
+      <Rectangle left="0" right="12800" top="0" bottom="9600"/>
+    </size>
+    <tags>
+
+      <!--
+        |  Define a sprite
+       -->
+      <DefineSprite objectID="1" frames="1">
+        <tags> <ShowFrame/> <End/> </tags>
+      </DefineSprite>
+
+      <DoAction>
+        <actions>
+              <!-- DICT 1 -->
+              <Dictionary>
+                <strings> <String value="A"/> </strings>
+              </Dictionary>
+
+              <!-- Push D1[0] ("A") -->
+              <PushData>
+                <items> <StackDictionaryLookup index="0"/> </items>
+              </PushData>
+              <Duplicate/><Trace/> <!-- for debugging -->
+
+              <EndAction/>
+        </actions>
+      </DoAction>
+
+
+      <!--
+        |  Place the sprite on stage (for events)
+       -->
+      <PlaceObject2 replace="0" depth="1" objectID="1" name=""
+                    allflags1="1" allflags2="0">
+        <events>
+          <Event flags1="1" flags2="0">  <!-- onClipLoad -->
+            <actions>
+
+              <!-- DICT 2 -->
+              <Dictionary>
+                <strings> <String value="B"/> </strings>
+              </Dictionary>
+
+              <!-- Push D2[0] ("B") -->
+              <PushData>
+                <items> <StackDictionaryLookup index="0"/> </items>
+              </PushData>
+
+              <EndAction/>
+            </actions>
+          </Event>
+          <Event flags1="0" flags2="0"/>
+        </events>
+      </PlaceObject2>
+
+      <DoAction>
+        <actions>
+
+              <!-- Push D2[0] ("B") -->
+              <PushData>
+                <items> <StackDictionaryLookup index="0"/> </items>
+              </PushData>
+              <Duplicate/><Trace/> <!-- for debugging -->
+
+              <AddTyped/>
+              <AddTyped/>
+              <Duplicate/>
+              <Trace/>
+
+          <!-- Verify the stack contains 'ab' -->
+          <PushData> <items> <StackString value="ABB"/> </items> </PushData>
+          <EqualTyped/>
+
+          <!-- If true, jump to PASSED tracing -->
+          <BranchIfTrue byteOffset="51"/>
+
+          <!-- Else, trace FAILED -->
+          <PushData> <items>
+              <StackString value="XFAILED: expected 'ABB' on clip event.. "/>
+          </items> </PushData>
+          <Trace/>
+
+          <BranchAlways byteOffset="45"/> <!-- get to end -->
+
+          <!-- PASSED tracing -->
+          <PushData>
+            <items>
+              <StackString value="XPASSED: dict/clip event interaction ok"/>
+            </items>
+          </PushData>
+          <Trace/>
+
+          <!-- END OF TEST tag -->
+          <PushData>
+            <items>
+              <StackString value="END OF TEST"/>
+            </items>
+          </PushData>
+          <Trace/>
+
+              <EndAction/>
+        </actions>
+      </DoAction>
+
+      <ShowFrame/>
+
+      <End/>
+
+    </tags>
+  </Header>
+</swf>

-----------------------------------------------------------------------

Summary of changes:
 testsuite/misc-swfmill.all/Makefile.am    |    6 ++
 testsuite/misc-swfmill.all/dict_event.xml |  122 +++++++++++++++++++++++++++++
 2 files changed, 128 insertions(+), 0 deletions(-)
 create mode 100644 testsuite/misc-swfmill.all/dict_event.xml


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]