[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Micr...
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Micr... |
Date: |
Sun, 25 May 2008 16:27:46 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/05/25 16:27:46
Modified files:
. : ChangeLog
testsuite/actionscript.all: Microphone.as
Log message:
* testsuite/actionscript.all/Microphone.as: more tests for
Microphone
class.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6702&r2=1.6703
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Microphone.as?cvsroot=gnash&r1=1.16&r2=1.17
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6702
retrieving revision 1.6703
diff -u -b -r1.6702 -r1.6703
--- ChangeLog 25 May 2008 10:05:18 -0000 1.6702
+++ ChangeLog 25 May 2008 16:27:45 -0000 1.6703
@@ -1,5 +1,10 @@
2008-05-25 Benjamin Wolsey <address@hidden>
+ * testsuite/actionscript.all/Microphone.as: more tests for Microphone
+ class.
+
+2008-05-25 Benjamin Wolsey <address@hidden>
+
* server/array.cpp, server/as_environment.cpp,
server/as_function.cpp, server/as_object.cpp server/as_value.cpp,
server/as_value.h, server/character.cpp, server/debugger.cpp,
Index: testsuite/actionscript.all/Microphone.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Microphone.as,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- testsuite/actionscript.all/Microphone.as 13 Mar 2008 17:25:39 -0000
1.16
+++ testsuite/actionscript.all/Microphone.as 25 May 2008 16:27:46 -0000
1.17
@@ -22,7 +22,7 @@
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: Microphone.as,v 1.16 2008/03/13 17:25:39 bwy Exp $";
+rcsid="$Id: Microphone.as,v 1.17 2008/05/25 16:27:46 bwy Exp $";
#include "check.as"
// There was no Microphone class in SWF5 or lower
@@ -35,6 +35,47 @@
check_equals ( typeof(Microphone.prototype.setSilenceLevel), 'function' );
check_equals ( typeof(Microphone.prototype.setUseEchoSuppression), 'function'
);
+
+check(Microphone.prototype.hasOwnProperty("setGain"));
+check(Microphone.prototype.hasOwnProperty("setRate"));
+check(Microphone.prototype.hasOwnProperty("setSilenceLevel"));
+check(Microphone.prototype.hasOwnProperty("setUseEchoSuppression"));
+
+// These aren't present yet.
+xcheck(!Microphone.prototype.hasOwnProperty("get"));
+check(!Microphone.prototype.hasOwnProperty("activityLevel"));
+check(!Microphone.prototype.hasOwnProperty("gain"));
+check(!Microphone.prototype.hasOwnProperty("index"));
+check(!Microphone.prototype.hasOwnProperty("muted"));
+check(!Microphone.prototype.hasOwnProperty("name"));
+check(!Microphone.prototype.hasOwnProperty("names"));
+check(!Microphone.prototype.hasOwnProperty("onActivity"));
+check(!Microphone.prototype.hasOwnProperty("onStatus"));
+check(!Microphone.prototype.hasOwnProperty("rate"));
+check(!Microphone.prototype.hasOwnProperty("silenceLevel"));
+check(!Microphone.prototype.hasOwnProperty("silenceTimeOut"));
+check(!Microphone.prototype.hasOwnProperty("useEchoSuppression"));
+
+f = new Microphone;
+check_equals(typeof(f), 'object');
+check_equals(typeof(f.setGain), 'function')
+
+
+// Still not present
+xcheck(!Microphone.prototype.hasOwnProperty("get"));
+check(!Microphone.prototype.hasOwnProperty("activityLevel"));
+check(!Microphone.prototype.hasOwnProperty("gain"));
+check(!Microphone.prototype.hasOwnProperty("index"));
+check(!Microphone.prototype.hasOwnProperty("muted"));
+check(!Microphone.prototype.hasOwnProperty("name"));
+check(!Microphone.prototype.hasOwnProperty("names"));
+check(!Microphone.prototype.hasOwnProperty("onActivity"));
+check(!Microphone.prototype.hasOwnProperty("onStatus"));
+check(!Microphone.prototype.hasOwnProperty("rate"));
+check(!Microphone.prototype.hasOwnProperty("silenceLevel"));
+check(!Microphone.prototype.hasOwnProperty("silenceTimeOut"));
+check(!Microphone.prototype.hasOwnProperty("useEchoSuppression"));
+
// Documented to be an array.
xcheck ( Microphone.hasOwnProperty("names"));
xcheck_equals (typeof (Microphone.names), 'object');
@@ -43,6 +84,19 @@
var microphoneObj = Microphone.get();
xcheck_equals (typeof(microphoneObj), 'object');
+// Microphone.get() adds these properties.
+// Other properties are probably dependent on whether a microphone
+// is present or not.
+xcheck(!Microphone.prototype.hasOwnProperty("get"));
+xcheck(Microphone.prototype.hasOwnProperty("activityLevel"));
+xcheck(Microphone.prototype.hasOwnProperty("gain"));
+xcheck(Microphone.prototype.hasOwnProperty("index"));
+xcheck(Microphone.prototype.hasOwnProperty("muted"));
+xcheck(Microphone.prototype.hasOwnProperty("name"));
+xcheck(Microphone.prototype.hasOwnProperty("rate"));
+xcheck(Microphone.prototype.hasOwnProperty("silenceLevel"));
+xcheck(Microphone.prototype.hasOwnProperty("useEchoSuppression"));
+
// test that Microphone.get() returns a singleton
check_equals(microphoneObj, Microphone.get());
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Micr...,
Benjamin Wolsey <=