[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Math...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Math... |
Date: |
Wed, 09 Jan 2008 16:21:39 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/01/09 16:21:39
Modified files:
. : ChangeLog
testsuite/actionscript.all: Math.as
server/asobj : Math.cpp
Log message:
make _global.Math inherit from Object.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5354&r2=1.5355
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Math.as?cvsroot=gnash&r1=1.6&r2=1.7
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Math.cpp?cvsroot=gnash&r1=1.25&r2=1.26
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5354
retrieving revision 1.5355
diff -u -b -r1.5354 -r1.5355
--- ChangeLog 9 Jan 2008 14:53:17 -0000 1.5354
+++ ChangeLog 9 Jan 2008 16:21:38 -0000 1.5355
@@ -1,5 +1,12 @@
2008-01-09 Sandro Santilli <address@hidden>
+ * server/asobj/Math.cpp: make _global.Math inherit
+ from Object.
+ * testsuite/actionscript.all/Math.as: test that _global.Math
+ is instance of Object, add consistency check.
+
+2008-01-09 Sandro Santilli <address@hidden>
+
* server/movie_root.{cpp,h}: add a loadMovie method
to schedule loads for next advance, using late
evaluation of target path (tested, but not automated).
Index: testsuite/actionscript.all/Math.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Math.as,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -b -r1.6 -r1.7
--- testsuite/actionscript.all/Math.as 29 Sep 2007 16:22:57 -0000 1.6
+++ testsuite/actionscript.all/Math.as 9 Jan 2008 16:21:39 -0000 1.7
@@ -17,7 +17,7 @@
//
-rcsid="$Id: Math.as,v 1.6 2007/09/29 16:22:57 strk Exp $";
+rcsid="$Id: Math.as,v 1.7 2008/01/09 16:21:39 strk Exp $";
// Test case for Math ActionScript class
//
@@ -34,7 +34,13 @@
#include "check.as"
-check (Math);
+check_equals (typeof(Math), 'object');
+check_equals (typeof(Math.__proto__), 'object');
+check_equals (Math.__proto__, Object.prototype);
+
+count = 0;
+for (m in Math) { trace(m); count++; };
+check_equals(count, 0);
// test methods existance
check_equals (typeOf(Math.abs), 'function');
@@ -463,4 +469,8 @@
//check_equals (Math.pow(-2, -.5).toString(), "NaN");
// End of Math testsuite
-totals();
+#if OUTPUT_VERSION <= 6
+ check_totals(265);
+#else
+ check_totals(274);
+#endif
Index: server/asobj/Math.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/Math.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -b -r1.25 -r1.26
--- server/asobj/Math.cpp 10 Dec 2007 10:54:33 -0000 1.25
+++ server/asobj/Math.cpp 9 Jan 2008 16:21:39 -0000 1.26
@@ -16,7 +16,7 @@
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
//
-/* $Id: Math.cpp,v 1.25 2007/12/10 10:54:33 bwy Exp $ */
+/* $Id: Math.cpp,v 1.26 2008/01/09 16:21:39 strk Exp $ */
//
// This file implements methods of the ActionScript Math class.
@@ -41,6 +41,7 @@
#include "GMath.h"
#include "log.h"
#include "builtin_function.h"
+#include "Object.h" // for getObjectInterface
using namespace std;
@@ -175,7 +176,7 @@
math_as_object::math_as_object()
:
- as_object()
+ as_object(getObjectInterface())
{
// TODO: rely on ineritance, use init_property ?
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Math...,
Sandro Santilli <=