gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Obje...


From: Benjamin Wolsey
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Obje...
Date: Tue, 11 Mar 2008 10:57:20 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Benjamin Wolsey <bwy>   08/03/11 10:57:20

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: Object.as 

Log message:
                * testsuite/actionscript.all/Object.as: check that 
toLocaleString
                  calls toString. Add some tests for when toLocaleString is 
implemented
                  at all.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.5873&r2=1.5874
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Object.as?cvsroot=gnash&r1=1.42&r2=1.43

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.5873
retrieving revision 1.5874
diff -u -b -r1.5873 -r1.5874
--- ChangeLog   11 Mar 2008 10:40:13 -0000      1.5873
+++ ChangeLog   11 Mar 2008 10:57:19 -0000      1.5874
@@ -1,3 +1,9 @@
+2008-03-11 Benjamin Wolsey <address@hidden>
+
+       * testsuite/actionscript.all/Object.as: check that toLocaleString
+         calls toString. Add some tests for when toLocaleString is implemented
+         at all.
+
 2008-03-10 Sandro Santilli <address@hidden>
 
        * testsuite/actionscript.all/: Date.as, Object.as:

Index: testsuite/actionscript.all/Object.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Object.as,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -b -r1.42 -r1.43
--- testsuite/actionscript.all/Object.as        11 Mar 2008 10:39:45 -0000      
1.42
+++ testsuite/actionscript.all/Object.as        11 Mar 2008 10:57:20 -0000      
1.43
@@ -35,7 +35,7 @@
 check_equals(typeof(Object.prototype.constructor), 'function'); 
 #if OUTPUT_VERSION > 5
  check(Object.prototype.hasOwnProperty('toString'));
- check(Object.prototype.hasOwnProperty('toLocaleString'));
+ xcheck(Object.prototype.hasOwnProperty('toLocaleString'));
  check(Object.prototype.hasOwnProperty('valueOf'));
 #endif
 check_equals(Object.prototype.prototype, undefined);
@@ -393,6 +393,21 @@
 check_equals(Object.prototype.toString(), 0);
 Object.prototype.toString = backup;
 
+/// This will ruin later tests while it fails hasOwnProperty.
+//xcheck_equals(Object.prototype.toLocaleString(), '[object Object]');
+//backup = Object.prototype.toLocaleString;
+//Object.prototype.toLocaleString = function() { return new Object; };
+//xcheck_equals(typeof(Object.prototype.toLocaleString()), 'object');
+//Object.prototype.toLocaleString = function() { return new Number; };
+//xcheck_equals(Object.prototype.toLocaleString(), 0);
+//Object.prototype.toLocaleString = NULL;
+
+// Check toLocaleString calls toString
+backup = Object.prototype.toString;
+Object.prototype.toString = function() { return "toString"; };
+xcheck_equals(Object.prototype.toLocaleString(), "toString");
+Object.prototype.toString = backup;
+
 //----------------------
 // Test enumeration
 //----------------------
@@ -527,10 +542,10 @@
 
 
 #if OUTPUT_VERSION <= 5
-totals(64);
+totals(65);
 #endif
 
 #if OUTPUT_VERSION >= 6
-totals(168);
+totals(169);
 #endif
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]