[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/sprite_instance.cpp serv...
From: |
Zou Lunkai |
Subject: |
[Gnash-commit] gnash ChangeLog server/sprite_instance.cpp serv... |
Date: |
Mon, 13 Aug 2007 07:20:10 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Zou Lunkai <zoulunkai> 07/08/13 07:20:10
Modified files:
. : ChangeLog
server : sprite_instance.cpp sprite_instance.h
testsuite/actionscript.all: ops.as
Log message:
* server/sprite_instance.{h,cpp}: deprecate clone_display_object(), use
duplicateMovieClip() instead.
* testsuite/actionscript.all/ops.as: more tests.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3999&r2=1.4000
http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.cpp?cvsroot=gnash&r1=1.307&r2=1.308
http://cvs.savannah.gnu.org/viewcvs/gnash/server/sprite_instance.h?cvsroot=gnash&r1=1.129&r2=1.130
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/ops.as?cvsroot=gnash&r1=1.14&r2=1.15
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3999
retrieving revision 1.4000
diff -u -b -r1.3999 -r1.4000
--- ChangeLog 13 Aug 2007 03:26:09 -0000 1.3999
+++ ChangeLog 13 Aug 2007 07:20:08 -0000 1.4000
@@ -1,14 +1,13 @@
-2007-08-12 Sandro Santilli <address@hidden>
+2007-08-13 Zou Lunkai <address@hidden>
+
+ * server/sprite_instance.{h,cpp}: deprecate clone_display_object(), use
+ duplicateMovieClip() instead.
+ * testsuite/actionscript.all/ops.as: more tests.
- * server/edit_text_character.{cpp,h}: add autoSize getter/setter
- (still not used)
- * testsuite/actionscript.all/TextField.as: add tests for autoSize
- member.
- * testsuite/misc-ming.all/DefineEditTextTest.c: add TODO items.
- * server/as_value.h: add is_bool()
2007-08-12 Sandro Santilli <address@hidden>
+ * server/as_value.h: add is_bool()
* server/edit_text_character.h (getBounds): add TODO item
(I belive is a fix for bug #20760)
Index: server/sprite_instance.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/sprite_instance.cpp,v
retrieving revision 1.307
retrieving revision 1.308
diff -u -b -r1.307 -r1.308
--- server/sprite_instance.cpp 9 Aug 2007 12:18:06 -0000 1.307
+++ server/sprite_instance.cpp 13 Aug 2007 07:20:09 -0000 1.308
@@ -2080,6 +2080,7 @@
return newsprite;
}
+#if 0
void sprite_instance::clone_display_object(const std::string& name,
const std::string& newname, int depth)
{
@@ -2110,6 +2111,7 @@
name.c_str(), newname.c_str(), depth, name.c_str());
}
}
+#endif
/* private */
void
Index: server/sprite_instance.h
===================================================================
RCS file: /sources/gnash/gnash/server/sprite_instance.h,v
retrieving revision 1.129
retrieving revision 1.130
diff -u -b -r1.129 -r1.130
--- server/sprite_instance.h 9 Aug 2007 12:18:06 -0000 1.129
+++ server/sprite_instance.h 13 Aug 2007 07:20:09 -0000 1.130
@@ -780,12 +780,12 @@
/// Member name.
///
void checkForKeyOrMouseEvent(const std::string& name);
-
+#if 0
/// Duplicate the object with the specified name
/// and add it with a new name at a new depth.
void clone_display_object(const std::string& name,
const std::string& newname, int depth);
-
+#endif
/// Reset the DisplayList for proper loop-back or goto_frame
//
/// The DisplayList is cleared by all but dynamic characters
Index: testsuite/actionscript.all/ops.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/ops.as,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- testsuite/actionscript.all/ops.as 7 Aug 2007 03:32:21 -0000 1.14
+++ testsuite/actionscript.all/ops.as 13 Aug 2007 07:20:09 -0000 1.15
@@ -20,7 +20,7 @@
* Test binary predicates (equal, less_then, greater_then, logical and
bitwise ops)
*/
-rcsid="$Id: ops.as,v 1.14 2007/08/07 03:32:21 zoulunkai Exp $";
+rcsid="$Id: ops.as,v 1.15 2007/08/13 07:20:09 zoulunkai Exp $";
#include "check.as"
@@ -362,7 +362,10 @@
check_equals( (1|null), 1 );
check_equals( (null|null), 0 );
check_equals( (8|4), 12 );
-// TODO ...
+
+// 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);
//------------------------------------------------
// Bitwise XOR operator (ACTION_BITWISEOR : 0x62)
@@ -376,11 +379,30 @@
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);
+x = 1;
+y = 2;
+check_equals(x^y, 3);
+
+x = 1.1;
+y = 2.1;
+check_equals(x^y, 3);
+
+x = 1.999;
+y = 2.999;
+check_equals(x^y, 3);
+
+x = new String("1.999");
+y = new String("2.999");
+xcheck_equals(x^y, 3);
+
+x = new String("1.999");
+y = 2.999;
+xcheck_equals(x^y, 3);
+
+x = 1.999;
+y = new String("2.999");
+xcheck_equals(x^y, 3);
-// TODO ...
//------------------------------------------------
// Shift left operator (ACTION_SHIFTLEFT : 0x63)
@@ -492,3 +514,57 @@
//-------------------------------------------------
// TODO ...
+
+
+//------------------------------------------------
+// Decrement Operator (ACTION_DECREMENT: 0x51)
+//------------------------------------------------
+
+x = 1;
+y = --x;
+check_equals(y, 0);
+
+x = 0;
+y = --x;
+check_equals(y, -1);
+
+x = new String("1.9");
+y = --x;
+//xcheck_equals(y, 0.9);
+xcheck( (y-0.9) < 0.001 );
+
+x = new String("0.0");
+y = --x;
+//xcheck_equals(y, -1.0);
+xcheck( (y+1.0) < 0.001 );
+
+x = new String("a");
+y = --x;
+xcheck(y!=NaN);
+check(isNaN(y));
+
+//------------------------------------------------
+// Increment Operator (ACTION_DECREMENT: 0x50)
+//------------------------------------------------
+
+x = 0;
+y = ++x;
+check_equals(y, 1);
+
+x = -1;
+y = ++x;
+check_equals(y, 0);
+
+x = new String("1.9");
+y = ++x;
+//xcheck_equals(y, 2.9);
+check( (y-2.9) < 0.001 );
+
+x = new String("0.0");
+y = ++x;
+xcheck_equals(y, 1);
+
+x = new String("a");
+y = ++x;
+xcheck(y!=NaN);
+check(isNaN(y));