gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Micr...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Micr...
Date: Wed, 22 Nov 2006 10:15:14 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/11/22 10:15:14

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: Microphone.as 

Log message:
                * testsuite/actionscript.all/Microphone.as: updated to
                  properly check the get() method.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1700&r2=1.1701
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Microphone.as?cvsroot=gnash&r1=1.6&r2=1.7

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1700
retrieving revision 1.1701
diff -u -b -r1.1700 -r1.1701
--- ChangeLog   22 Nov 2006 10:11:56 -0000      1.1700
+++ ChangeLog   22 Nov 2006 10:15:14 -0000      1.1701
@@ -1,5 +1,7 @@
 2006-11-21 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/Microphone.as: updated to
+         properly check the get() method.
        * testsuite/actionscript.all/Date.as: check UTC to be
          a method of the Date class, not inherited by instances.
        * testsuite/actionscript.all/ContextMenu.as: check that

Index: testsuite/actionscript.all/Microphone.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Microphone.as,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- testsuite/actionscript.all/Microphone.as    5 Nov 2006 00:45:27 -0000       
1.6
+++ testsuite/actionscript.all/Microphone.as    22 Nov 2006 10:15:14 -0000      
1.7
@@ -20,22 +20,24 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: Microphone.as,v 1.6 2006/11/05 00:45:27 rsavoye Exp $";
+rcsid="$Id: Microphone.as,v 1.7 2006/11/22 10:15:14 strk Exp $";
 
 #include "check.as"
 
-var microphoneObj = new Microphone;
-
 // test the Microphone constuctor
-check (microphoneObj != undefined);
+var microphoneObj = Microphone.get();
+xcheck (microphoneObj != undefined);
+
+// test that Microphone.get() returns a singleton
+check_equals(microphoneObj, Microphone.get());
 
-// test the Microphone::get method
-check (microphoneObj.get != undefined);
+// test that get() method is NOT exported to instances
+check_equals (microphoneObj.get, undefined);
 // test the Microphone::setgain method
-check (microphoneObj.setgain != undefined);
+xcheck (microphoneObj.setgain != undefined);
 // test the Microphone::setrate method
-check (microphoneObj.setrate != undefined);
+xcheck (microphoneObj.setrate != undefined);
 // test the Microphone::setsilencelevel method
-check (microphoneObj.setsilencelevel != undefined);
+xcheck (microphoneObj.setsilencelevel != undefined);
 // test the Microphone::setuseechosuppression method
-check (microphoneObj.setuseechosuppression != undefined);
+xcheck (microphoneObj.setuseechosuppression != undefined);




reply via email to

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