[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as |
Date: |
Mon, 06 Aug 2007 19:30:48 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/08/06 19:30:47
Modified files:
. : ChangeLog
testsuite/actionscript.all: ops.as
Log message:
* testsuite/actionscript.all/ops.as: add test for 0xffffffff
conversion to integer needing to be -1 (gnash fails, need
Ming head
to reproduce)
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3954&r2=1.3955
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/ops.as?cvsroot=gnash&r1=1.12&r2=1.13
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3954
retrieving revision 1.3955
diff -u -b -r1.3954 -r1.3955
--- ChangeLog 6 Aug 2007 18:28:41 -0000 1.3954
+++ ChangeLog 6 Aug 2007 19:30:47 -0000 1.3955
@@ -1,5 +1,8 @@
-2007-08-06 Zou Lunkai <address@hidden>
+2007-08-06 Sandro Santilli <address@hidden>
+ * testsuite/actionscript.all/ops.as: add test for 0xffffffff
+ conversion to integer needing to be -1 (gnash fails, need Ming head
+ to reproduce)
* server/video_stream_instance.cpp (markReachableResources): don't
forget to call the character's version of resource marking !!
Fixes bug #20657.
Index: testsuite/actionscript.all/ops.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/ops.as,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -b -r1.12 -r1.13
--- testsuite/actionscript.all/ops.as 6 Aug 2007 07:40:22 -0000 1.12
+++ testsuite/actionscript.all/ops.as 6 Aug 2007 19:30:47 -0000 1.13
@@ -20,7 +20,7 @@
* Test binary predicates (equal, less_then, greater_then, logical and
bitwise ops)
*/
-rcsid="$Id: ops.as,v 1.12 2007/08/06 07:40:22 zoulunkai Exp $";
+rcsid="$Id: ops.as,v 1.13 2007/08/06 19:30:47 strk Exp $";
#include "check.as"
@@ -375,6 +375,11 @@
check_equals( (1^null), 1 );
check_equals( (null^null), 0 );
check_equals( (8^12), 4 );
+
+// The check below will fail if Ming converts the long int to a double
+// (only with Gnash, it works fine with the proprietary player)
+check_equals((0xffffffff|0), -1);
+
// TODO ...
//------------------------------------------------
@@ -385,9 +390,16 @@
y = x << 2;
check_equals(y, 4);
-x = 0xffffffff;
+x = 0xffffffff; // Ming up to 0.4.0.beta4 will convert this to -1 !
+ // Newer Ming will store it as a double. Still, the
+ // player itself converts it back to -1 as an integer
+ // prior to applying the bitwise operator.
+y = x << 16;
+check_equals(y, -65536);
+
+x = -1;
y = x << 16;
-check_equals(Math.round(y), -65536);
+check_equals(y, -65536);
x = 1.9;
y = x << 2;
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as, Zou Lunkai, 2007/08/01
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as, Zou Lunkai, 2007/08/02
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as, Sandro Santilli, 2007/08/02
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as, Zou Lunkai, 2007/08/06
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as,
Sandro Santilli <=
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as, Sandro Santilli, 2007/08/19
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as, Sandro Santilli, 2007/08/25
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/ops.as, Zou Lunkai, 2007/08/26