gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/testsuite/misc-ming.all NetStream-SquareT...


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite/misc-ming.all NetStream-SquareT...
Date: Sat, 10 May 2008 15:52:54 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/05/10 15:52:54

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

Log message:
        Add test for NetStream.play() not resuming playback when paused

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c?cvsroot=gnash&r1=1.26&r2=1.27

Patches:
Index: NetStream-SquareTest.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/NetStream-SquareTest.c,v
retrieving revision 1.26
retrieving revision 1.27
diff -u -b -r1.26 -r1.27
--- NetStream-SquareTest.c      10 May 2008 15:40:47 -0000      1.26
+++ NetStream-SquareTest.c      10 May 2008 15:52:54 -0000      1.27
@@ -247,9 +247,13 @@
                "               ' currentFps:'+stream.currentFps+' 
time:'+stream.time);"
                "       var ascii = Key.getAscii();"
                "       trace('Key down: '+ascii);"
-               "       if ( ascii == 32 ) {" // ' ' - start/stop playback 
+               "       if ( ascii == 32 ) {" // ' ' - pause(toggle)
                "               stream.paused = !stream.paused;"
-               "               stream.pause(stream.paused);"
+               "               stream.pause();" // stream.paused);"
+               "       }"
+               "       else if ( ascii == 112 ) {" // 'p' - play()
+               "               stream.play();"
+               "               _root.note(\"2. Verify video hasn't started, 
then press space to continue.\");"
                "       }"
                "};"
                "Key.addListener(_root);"
@@ -431,7 +435,7 @@
                " delete info.duration;"
                " check(!info.hasOwnProperty('duration'), 'metadata duration 
can be deleted');"
 
-               " _root.note('- Press space to continue, or any key to just see 
info about playhed -');"
+               " _root.note('1. Press \"p\" key');"
 
                "};"
                ));




reply via email to

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