gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] /srv/bzr/gnash/trunk r9724: Test ECMA_ARRAY amf0 parsing


From: Sandro Santilli
Subject: [Gnash-commit] /srv/bzr/gnash/trunk r9724: Test ECMA_ARRAY amf0 parsing (still bogus in gnash)
Date: Thu, 11 Sep 2008 19:33:07 +0200
User-agent: Bazaar (1.5)

------------------------------------------------------------
revno: 9724
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Thu 2008-09-11 19:33:07 +0200
message:
  Test ECMA_ARRAY amf0 parsing (still bogus in gnash)
modified:
  testsuite/misc-ming.all/NetStream-SquareTest.c
    ------------------------------------------------------------
    revno: 9723.1.1
    committer: Sandro Santilli <address@hidden>
    branch nick: mybranch
    timestamp: Thu 2008-09-11 19:32:33 +0200
    message:
      Add test for ECMA_ARRAY length
    modified:
      testsuite/misc-ming.all/NetStream-SquareTest.c
=== modified file 'testsuite/misc-ming.all/NetStream-SquareTest.c'
--- a/testsuite/misc-ming.all/NetStream-SquareTest.c    2008-09-02 22:57:53 
+0000
+++ b/testsuite/misc-ming.all/NetStream-SquareTest.c    2008-09-11 17:32:33 
+0000
@@ -508,20 +508,23 @@
 
                " check(_root.startNotified, 'onMetaData should be notified 
after Play.Start');"
                " check_equals(arguments.length, 1, 'single argument');"
-               " check(info instanceof Object, 'onMetaData argument should be 
instanceof Object');"
+               " check(info instanceof Array, 'onMetaData argument sent from 
square.flv should be instanceof Array');"
+               " xcheck_equals(info.length, 11);" // it's an array so we can 
check length. gnash fails by discarding the count element of ECMA_ARRAY AMF type
 
                // Test enumeration
                " var enu = new Array;"
                " for (e in info) { "
                "  enu.push(e);"
                " }"
-               " check_equals(enu.length, 11);" // gnash contains 2 more 
+               " check_equals(enu.length, 11);" // this is actual (not 
virtual) composition
 
                "\n"
 
 
                // Test composision
 
+               " check(info.hasOwnProperty('length'), 'metadata has length');" 
// it's an array...
+
                " check(info.hasOwnProperty('filesize'), 'metadata has 
filesize');"
                " check_equals(typeof(info.filesize), 'number', 'filesize is a 
number');"
                " check_equals(info.filesize, '21482', 'actual filesize');"
@@ -612,7 +615,7 @@
   check_equals(mo, "metadataNotified", "1");
   check_equals(mo, "stopNotified", "2");
   check_equals(mo, "startNotified", "1");
-  SWFMovie_add(mo, (SWFBlock)newSWFAction("totals(140); stop();"));
+  SWFMovie_add(mo, (SWFBlock)newSWFAction("totals(142); stop();"));
 
   SWFMovie_nextFrame(mo);
 


reply via email to

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