gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/NetStre...
Date: Sun, 11 May 2008 22:10:47 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/05/11 22:10:47

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: NetStream-SquareTest.c 

Log message:
        add a second video character, will be attached a second NetStream using
        the same NetConnection as the first.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6582&r2=1.6583
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c?cvsroot=gnash&r1=1.28&r2=1.29

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6582
retrieving revision 1.6583
diff -u -b -r1.6582 -r1.6583
--- ChangeLog   11 May 2008 21:58:29 -0000      1.6582
+++ ChangeLog   11 May 2008 22:10:46 -0000      1.6583
@@ -1,5 +1,11 @@
 2008-05-11 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/NetStream-SquareTest.c: add a second
+         video character, will be attached a second NetStream using
+         the same NetConnection as the first.
+
+2008-05-11 Sandro Santilli <address@hidden>
+
        * testsuite/misc-ming.all/NetStream-SquareTest.c: test that
          NetConnection.isConnected returns true after .connect(null).
 

Index: testsuite/misc-ming.all/NetStream-SquareTest.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- testsuite/misc-ming.all/NetStream-SquareTest.c      11 May 2008 21:58:30 
-0000      1.28
+++ testsuite/misc-ming.all/NetStream-SquareTest.c      11 May 2008 22:10:47 
-0000      1.29
@@ -92,19 +92,21 @@
        "stream = new NetStream(nc);"
        "check_equals ( typeof(stream.bytesTotal), 'number' );"
        "stream.bytesTotal = 'string';"
-       "check_equals ( typeof(stream.bytesTotal), 'number' );",        
-       OUTPUT_VERSION);
+       "check_equals ( typeof(stream.bytesTotal), 'number' );"
+       "stream2 = new NetStream(nc);"
+       , OUTPUT_VERSION);
 
        sprintf(buffer_b,
        // bytesTotal (read-only)
        "stream.play('%s');"
+       "stream2.play('%s');"
        "stream.pause(true);" 
        "stream.paused=true;"
        "_root.metadataNotified=0;"
        "_root.startNotified=0;"
        "_root.stopNotified=0;"
        "stop();",
-       filename);
+       filename, filename);
 
   Ming_init();
   Ming_useSWFVersion (OUTPUT_VERSION);
@@ -130,6 +132,12 @@
   /* SWFDisplayItem_moveTo(item, 0, 200); */
   SWFDisplayItem_setName(item, "video");
 
+  stream = newSWFVideoStream();
+  SWFVideoStream_setDimension(stream, video_width, video_height);
+  item = SWFMovie_add(mo, (SWFBlock)stream);
+  SWFDisplayItem_moveTo(item, 200, 0);
+  SWFDisplayItem_setName(item, "video2");
+
   a = newSWFAction(buffer_a);
   if(a == NULL) return -1;
   SWFMovie_add(mo, (SWFBlock)a);
@@ -147,6 +155,7 @@
   check(mo, "NetStream.prototype.hasOwnProperty('bytesTotal')"); // check 
bytesTotal
   
   add_actions(mo, "video.attachVideo(stream);"); 
+  add_actions(mo, "video2.attachVideo(stream2);"); 
   
   // currentFps (read-only)
   check_equals (mo, "typeof(stream.currentFps)", "'number'" );
@@ -257,6 +266,12 @@
                "               stream.play();"
                "               _root.note(\"2. Verify video hasn't started, 
then press space to continue.\");"
                "       }"
+               "       else if ( ascii == 99 ) {" // 'c' - play()
+               "               _root.check(nc.isConnected, 'NetConnection is 
connected');"
+               "               _root.nc.close();"
+               "               _root.note(\"Closed netconnection\");"
+               "               _root.check(!nc.isConnected, 'NetConnection is 
not connected');"
+               "       }"
                "};"
                "Key.addListener(_root);"
 




reply via email to

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