[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi... |
Date: |
Wed, 22 Aug 2007 14:29:29 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/08/22 14:29:29
Modified files:
. : ChangeLog
testsuite/actionscript.all: MovieClip.as
Log message:
* testsuite/actionscript.all/MovieClip.as:
Modify syntax used to test for functions availability
to cope with a bug in Ming < 00040005.
Should fix bug #20867.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4067&r2=1.4068
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.79&r2=1.80
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4067
retrieving revision 1.4068
diff -u -b -r1.4067 -r1.4068
--- ChangeLog 22 Aug 2007 13:09:09 -0000 1.4067
+++ ChangeLog 22 Aug 2007 14:29:29 -0000 1.4068
@@ -1,3 +1,10 @@
+2007-08-22 Sandro Santilli <address@hidden>
+
+ * testsuite/actionscript.all/MovieClip.as:
+ Modify syntax used to test for functions availability
+ to cope with a bug in Ming < 00040005.
+ Should fix bug #20867.
+
2007-08-22 Chad Musick <address@hidden>
* server/font.h, server/font.cpp: Define
Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.79
retrieving revision 1.80
diff -u -b -r1.79 -r1.80
--- testsuite/actionscript.all/MovieClip.as 2 Aug 2007 18:57:00 -0000
1.79
+++ testsuite/actionscript.all/MovieClip.as 22 Aug 2007 14:29:29 -0000
1.80
@@ -20,7 +20,7 @@
// compile this test case with Ming makeswf, and then
// execute it like this gnash -1 -r 0 -v out.swf
-rcsid="$Id: MovieClip.as,v 1.79 2007/08/02 18:57:00 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.80 2007/08/22 14:29:29 strk Exp $";
#include "check.as"
@@ -98,13 +98,9 @@
check_equals(mc.enabled, 'a string'); // yes, we can set to arbitrary values
mc.__proto__.enabled = true; // better keep as it was initially, who knows
what it would do...
-// This seems unavailable
-// when targetting SWF > 6
-#if OUTPUT_VERSION > 6
-check_equals(mc.duplicateMovieClip, undefined);
-#else
-check(mc.duplicateMovieClip);
-#endif
+// NOTE: due to a bug in Ming < 00040005, mc.loadMovie would
+// be converted to lowercase, so we use the [] hack
+check_equals(typeof(mc['duplicateMovieClip']), 'function');
#if OUTPUT_VERSION >= 6
check_equals(typeof(mc.setMask), 'function');
@@ -133,15 +129,10 @@
check_equals(typeof(mc.stopDrag), 'function');
check_equals(typeof(mc.getTextSnapshot), 'function');
- // These two seem unavailable
- // when targetting SWF > 6
-#if OUTPUT_VERSION > 6
- check_equals(typeof(mc.loadMovie), 'undefined');
- check_equals(typeof(mc.removeMovieClip), 'undefined');
-#else
- check_equals(typeof(mc.loadMovie), 'function');
- check_equals(typeof(mc.removeMovieClip), 'function');
-#endif
+ // NOTE: due to a bug in Ming < 00040005, mc.loadMovie would
+ // be converted to lowercase, so we use the [] hack
+ check_equals(typeof(mc['loadMovie']), 'function');
+ check_equals(typeof(mc['removeMovieClip']), 'function');
#endif // OUTPUT_VERSION >= 6