[Top][All Lists]
[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: |
Fri, 13 Jul 2007 02:59:15 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/07/13 02:59:15
Modified files:
. : ChangeLog
testsuite/actionscript.all: Microphone.as
Log message:
* testsuite/actionscript.all/Microphone.as: test cleanup
(see bug #20472).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3731&r2=1.3732
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Microphone.as?cvsroot=gnash&r1=1.8&r2=1.9
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3731
retrieving revision 1.3732
diff -u -b -r1.3731 -r1.3732
--- ChangeLog 13 Jul 2007 02:50:10 -0000 1.3731
+++ ChangeLog 13 Jul 2007 02:59:15 -0000 1.3732
@@ -1,5 +1,7 @@
2007-07-13 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/Microphone.as: test cleanup
+ (see bug #20472).
* testsuite/misc-ming.all/Makefile.am: Fix linking
for DefineEditTextTest, add rule to build the corresponding
SWF file.
Index: testsuite/actionscript.all/Microphone.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Microphone.as,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- testsuite/actionscript.all/Microphone.as 1 Jul 2007 10:54:39 -0000
1.8
+++ testsuite/actionscript.all/Microphone.as 13 Jul 2007 02:59:15 -0000
1.9
@@ -20,24 +20,40 @@
// 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.8 2007/07/01 10:54:39 bjacques Exp $";
+rcsid="$Id: Microphone.as,v 1.9 2007/07/13 02:59:15 strk Exp $";
#include "check.as"
+// There was no Microphone class in SWF5 or lower
+#if OUTPUT_VERSION > 5
+
+// test the Microphone class
+check_equals(typeof(Microphone), 'function');
+xcheck_equals ( typeof(Microphone.prototype.setGain), 'function' );
+xcheck_equals ( typeof(Microphone.prototype.setRate), 'function' );
+xcheck_equals ( typeof(Microphone.prototype.setSilenceLevel), 'function' );
+xcheck_equals ( typeof(Microphone.prototype.setUseEchoSuppression), 'function'
);
+
// test the Microphone constuctor
var microphoneObj = Microphone.get();
-xcheck (microphoneObj != undefined);
+xcheck_equals (typeof(microphoneObj), 'object');
// test that Microphone.get() returns a singleton
check_equals(microphoneObj, Microphone.get());
// test that get() method is NOT exported to instances
-check_equals (microphoneObj.get, undefined);
-// test the Microphone::setgain method
-xcheck (microphoneObj.setgain != undefined);
-// test the Microphone::setrate method
-xcheck (microphoneObj.setrate != undefined);
-// test the Microphone::setsilencelevel method
-xcheck (microphoneObj.setsilencelevel != undefined);
-// test the Microphone::setuseechosuppression method
-xcheck (microphoneObj.setuseechosuppression != undefined);
+check_equals (typeof(microphoneObj.get), 'undefined');
+
+// test the Microphone::setGain method
+xcheck_equals ( typeof(microphoneObj.setGain), 'function' );
+
+// test the Microphone::setRate method
+xcheck_equals ( typeof(microphoneObj.setRate), 'function' );
+
+// test the Microphone::setSilenceLevel method
+xcheck_equals ( typeof(microphoneObj.setSilenceLevel), 'function' );
+
+// test the Microphone::setUseEchoSuppression method
+xcheck_equals ( typeof(microphoneObj.setUseEchoSuppression), 'function' );
+
+#endif // OUTPUT_VERSION > 5
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Micr...,
Sandro Santilli <=