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-444-g0e108ce
Date: Thu, 07 Jul 2011 15:23:13 +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  0e108ce066928bb484a0028c059d83dc0e409978 (commit)
      from  f0f5e1fe8e842840f525eb3cc5e6eb31fd33cc36 (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=0e108ce066928bb484a0028c059d83dc0e409978


commit 0e108ce066928bb484a0028c059d83dc0e409978
Author: Sandro Santilli <address@hidden>
Date:   Thu Jul 7 17:21:29 2011 +0200

    Add another constant pool (dictionary) test. Showing more gnash bugs about 
it.

diff --git a/testsuite/misc-swfmill.all/Makefile.am 
b/testsuite/misc-swfmill.all/Makefile.am
index 47e8c96..fba0506 100644
--- a/testsuite/misc-swfmill.all/Makefile.am
+++ b/testsuite/misc-swfmill.all/Makefile.am
@@ -47,6 +47,7 @@ SC_AS2_XMLTESTS = \
        dict_override.xml \
        func_dict.xml \
        afunc_dict.xml \
+       dict_cross.xml \
        initaction_in_definesprite.xml \
        zeroframe_definesprite.xml \
        background.xml \
@@ -95,6 +96,7 @@ check_SCRIPTS = \
        jump_to_prev_block-runner \
        dict_override-runner \
        func_dict-runner \
+       dict_cross-runner \
        afunc_dict-runner \
        initaction_in_definesprite-runner \
        zeroframe_definesprite-runner \
@@ -125,15 +127,19 @@ jump_to_prev_block-runner: 
$(srcdir)/../generic-testrunner.sh jump_to_prev_block
        chmod 755 $@
 
 dict_override-runner: $(srcdir)/../generic-testrunner.sh dict_override.swf 
Makefile
-       sh $(srcdir)/../generic-testrunner.sh -r 50 -c "END OF TEST" 
$(top_builddir) dict_override.swf > $@
+       sh $(srcdir)/../generic-testrunner.sh -r 1 -c "END OF TEST" 
$(top_builddir) dict_override.swf > $@
+       chmod 755 $@
+
+dict_cross-runner: $(srcdir)/../generic-testrunner.sh dict_cross.swf Makefile
+       sh $(srcdir)/../generic-testrunner.sh -r 1 -c "END OF TEST" 
$(top_builddir) dict_cross.swf > $@
        chmod 755 $@
 
 func_dict-runner: $(srcdir)/../generic-testrunner.sh func_dict.swf Makefile
-       sh $(srcdir)/../generic-testrunner.sh -r 50 -c "END OF TEST" 
$(top_builddir) func_dict.swf > $@
+       sh $(srcdir)/../generic-testrunner.sh -r 1 -c "END OF TEST" 
$(top_builddir) func_dict.swf > $@
        chmod 755 $@
 
 afunc_dict-runner: $(srcdir)/../generic-testrunner.sh afunc_dict.swf Makefile
-       sh $(srcdir)/../generic-testrunner.sh -r 50 -c "END OF TEST" 
$(top_builddir) afunc_dict.swf > $@
+       sh $(srcdir)/../generic-testrunner.sh -r 1 -c "END OF TEST" 
$(top_builddir) afunc_dict.swf > $@
        chmod 755 $@
 
 initaction_in_definesprite-runner: $(srcdir)/../generic-testrunner.sh 
initaction_in_definesprite.swf Makefile
diff --git a/testsuite/misc-swfmill.all/dict_cross.xml 
b/testsuite/misc-swfmill.all/dict_cross.xml
new file mode 100644
index 0000000..42860b8
--- /dev/null
+++ b/testsuite/misc-swfmill.all/dict_cross.xml
@@ -0,0 +1,111 @@
+<?xml version="1.0"?>
+<swf version="6" compressed="0">
+
+<!--
+
+ Show that constant pool definition crosses boundary
+ of a single DoAction block.
+
+-->
+
+  <Header framerate="12" frames="2">
+    <size>
+      <Rectangle left="0" right="12800" top="0" bottom="9600"/>
+    </size>
+    <tags>
+
+      <DoAction><actions>
+
+       <!-- DICT 1 -->
+          <Dictionary>
+            <strings>
+              <String value="A"/>
+            </strings>
+          </Dictionary>
+
+          <PushData>
+            <items>
+               <!-- Lookup in DICT 1 -->
+              <StackDictionaryLookup index="0"/>
+            </items>
+          </PushData>
+
+       <!-- DICT 2 -->
+          <Dictionary>
+            <strings> <String value="B"/> </strings>
+          </Dictionary>
+
+      </actions> </DoAction>
+
+      <DoAction><actions>
+
+          <PushData>
+            <items>
+               <!-- Lookup in DICT 2 -->
+              <StackDictionaryLookup index="0"/>
+            </items>
+          </PushData>
+
+
+       <!-- DICT 2 (skipped by BranchAlways) -->
+          <BranchAlways byteOffset="7"/>
+          <Dictionary>
+            <strings> <String value="C"/> </strings>
+          </Dictionary>
+
+          <PushData>
+            <items>
+               <!-- Lookup in DICT 2 -->
+              <StackDictionaryLookup index="0"/>
+            </items>
+          </PushData>
+
+         <AddTyped/>
+         <AddTyped/>
+          <Duplicate/>
+          <Trace/>
+
+         // Verify the stack contains 'ABB'
+          <PushData>
+            <items>
+              <StackString value="ABB"/>
+            </items>
+          </PushData>
+         <EqualTyped/>
+
+         // If true, jump to PASSED tracing
+         <BranchIfTrue byteOffset="51"/>
+
+         // Else, trace XFAILED
+          <PushData>
+            <items>
+              <StackString value="XFAILED: something went wrong with dicts"/>
+            </items>
+          </PushData>
+          <Trace/>
+          <BranchAlways byteOffset="43"/> // get to end 
+
+         // PASSED tracing
+          <PushData>
+            <items>
+              <StackString value="PASSED: cross boundary dicts all fine"/>
+            </items>
+          </PushData>
+          <Trace/>
+
+         // END OF TEST tag
+          <PushData>
+            <items>
+              <StackString value="END OF TEST"/>
+            </items>
+          </PushData>
+          <Trace/>
+
+      </actions> </DoAction>
+
+      <ShowFrame/>
+      <End/>
+    </tags>
+  </Header>
+</swf>
+

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

Summary of changes:
 testsuite/misc-swfmill.all/Makefile.am    |   12 +++-
 testsuite/misc-swfmill.all/dict_cross.xml |  111 +++++++++++++++++++++++++++++
 2 files changed, 120 insertions(+), 3 deletions(-)
 create mode 100644 testsuite/misc-swfmill.all/dict_cross.xml


hooks/post-receive
-- 
Gnash



reply via email to

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