[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog server/asobj/Object.cpp testsui...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash ChangeLog server/asobj/Object.cpp testsui... |
Date: |
Tue, 11 Mar 2008 10:39:45 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 08/03/11 10:39:45
Modified files:
. : ChangeLog
server/asobj : Object.cpp
testsuite/actionscript.all: Date.as Object.as
Log message:
Use hasOwnProperty for new 'toLocaleString' availability testing.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5871&r2=1.5872
http://cvs.savannah.gnu.org/viewcvs/gnash/server/asobj/Object.cpp?cvsroot=gnash&r1=1.42&r2=1.43
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Date.as?cvsroot=gnash&r1=1.35&r2=1.36
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Object.as?cvsroot=gnash&r1=1.41&r2=1.42
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5871
retrieving revision 1.5872
diff -u -b -r1.5871 -r1.5872
--- ChangeLog 11 Mar 2008 10:15:39 -0000 1.5871
+++ ChangeLog 11 Mar 2008 10:39:44 -0000 1.5872
@@ -1,3 +1,9 @@
+2008-03-10 Sandro Santilli <address@hidden>
+
+ * testsuite/actionscript.all/: Date.as, Object.as:
+ Use hasOwnProperty for new 'toLocaleString' availability
+ testing.
+
2008-03-11 Benjamin Wolsey <address@hidden>
* testsuite/actionscript.all/Date.as: tests for toLocaleString.
Index: server/asobj/Object.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/asobj/Object.cpp,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- server/asobj/Object.cpp 5 Mar 2008 03:56:02 -0000 1.42
+++ server/asobj/Object.cpp 11 Mar 2008 10:39:44 -0000 1.43
@@ -352,6 +352,7 @@
);
return as_value(false);
}
+ log_debug("%p.hasOwnProperty", fn.this_ptr);
return
as_value(fn.this_ptr->getOwnProperty(VM::get().getStringTable().find(propname))
!= NULL);
}
Index: testsuite/actionscript.all/Date.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Date.as,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -b -r1.35 -r1.36
--- testsuite/actionscript.all/Date.as 11 Mar 2008 10:15:40 -0000 1.35
+++ testsuite/actionscript.all/Date.as 11 Mar 2008 10:39:44 -0000 1.36
@@ -31,6 +31,48 @@
#if OUTPUT_VERSION > 5
check_equals(typeof(Date.__proto__), 'object');
check_equals(Date.__proto__, Function.prototype);
+
+ check (Date.prototype.hasOwnProperty('getDate'));
+ check (Date.prototype.hasOwnProperty('getDay'));
+ check (Date.prototype.hasOwnProperty('getFullYear'));
+ check (Date.prototype.hasOwnProperty('getHours'));
+ check (Date.prototype.hasOwnProperty('getMilliseconds'));
+ check (Date.prototype.hasOwnProperty('getMinutes'));
+ check (Date.prototype.hasOwnProperty('getMonth'));
+ check (Date.prototype.hasOwnProperty('getSeconds'));
+ check (Date.prototype.hasOwnProperty('getTime'));
+ check (Date.prototype.hasOwnProperty('getTimezoneOffset'));
+ check (Date.prototype.hasOwnProperty('getUTCDate'));
+ check (Date.prototype.hasOwnProperty('getUTCDay'));
+ check (Date.prototype.hasOwnProperty('getUTCFullYear'));
+ check (Date.prototype.hasOwnProperty('getUTCHours'));
+ check (Date.prototype.hasOwnProperty('getUTCMilliseconds'));
+ check (Date.prototype.hasOwnProperty('getUTCMinutes'));
+ check (Date.prototype.hasOwnProperty('getUTCMonth'));
+ check (Date.prototype.hasOwnProperty('getUTCSeconds'));
+ check (Date.prototype.hasOwnProperty('getYear'));
+ check (Date.prototype.hasOwnProperty('setDate'));
+ check (Date.prototype.hasOwnProperty('setFullYear'));
+ check (Date.prototype.hasOwnProperty('setHours'));
+ check (Date.prototype.hasOwnProperty('setMilliseconds'));
+ check (Date.prototype.hasOwnProperty('setMinutes'));
+ check (Date.prototype.hasOwnProperty('setMonth'));
+ check (Date.prototype.hasOwnProperty('setSeconds'));
+ check (Date.prototype.hasOwnProperty('setTime'));
+ check (Date.prototype.hasOwnProperty('setUTCDate'));
+ check (Date.prototype.hasOwnProperty('setUTCFullYear'));
+ check (Date.prototype.hasOwnProperty('setUTCHours'));
+ check (Date.prototype.hasOwnProperty('setUTCMilliseconds'));
+ check (Date.prototype.hasOwnProperty('setUTCMinutes'));
+ check (Date.prototype.hasOwnProperty('setUTCMonth'));
+ check (Date.prototype.hasOwnProperty('setUTCSeconds'));
+ check (Date.prototype.hasOwnProperty('setYear'));
+ check (Date.prototype.hasOwnProperty('toString'));
+ check (!Date.prototype.hasOwnProperty('toLocaleString'));
+
+// UTC is a static method present from v5
+check_equals (d.UTC, undefined);
+check (Date.UTC);
#else
xcheck_equals(typeof(Date.__proto__), 'undefined');
#endif
Index: testsuite/actionscript.all/Object.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Object.as,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -b -r1.41 -r1.42
--- testsuite/actionscript.all/Object.as 11 Mar 2008 10:15:40 -0000
1.41
+++ testsuite/actionscript.all/Object.as 11 Mar 2008 10:39:45 -0000
1.42
@@ -31,13 +31,11 @@
check_equals(typeof(Object.registerClass), 'function');
check_equals(typeof(Object.prototype.toString), 'function');
xcheck_equals(typeof(Object.prototype.toLocaleString), 'function');
-#if OUTPUT_VERSION > 5
- check(Object.prototype.hasOwnProperty('toString'));
-#endif
check_equals(typeof(Object.prototype.valueOf), 'function');
check_equals(typeof(Object.prototype.constructor), 'function');
#if OUTPUT_VERSION > 5
check(Object.prototype.hasOwnProperty('toString'));
+ check(Object.prototype.hasOwnProperty('toLocaleString'));
check(Object.prototype.hasOwnProperty('valueOf'));
#endif
check_equals(Object.prototype.prototype, undefined);
- [Gnash-commit] gnash ChangeLog server/asobj/Object.cpp testsui...,
Sandro Santilli <=