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: Mon, 28 Apr 2008 13:43:01 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Benjamin Wolsey <bwy>   08/04/28 13:43:01

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

Log message:
                * testsuite/actionscript.all/Object.as: tests for undefined 
__proto__
                  and valueOf (and toString).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6433&r2=1.6434
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Object.as?cvsroot=gnash&r1=1.63&r2=1.64

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6433
retrieving revision 1.6434
diff -u -b -r1.6433 -r1.6434
--- ChangeLog   28 Apr 2008 13:39:12 -0000      1.6433
+++ ChangeLog   28 Apr 2008 13:43:00 -0000      1.6434
@@ -1,3 +1,8 @@
+2008-04-28 Benjamin Wolsey <address@hidden>
+
+       * testsuite/actionscript.all/Object.as: tests for undefined __proto__
+         and valueOf (and toString).
+
 2008-04-28 Sandro Santilli <address@hidden>
 
        * server/sprite_instance.cpp: for lineStyle, since we now know SWF8

Index: testsuite/actionscript.all/Object.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Object.as,v
retrieving revision 1.63
retrieving revision 1.64
diff -u -b -r1.63 -r1.64
--- testsuite/actionscript.all/Object.as        9 Apr 2008 09:51:21 -0000       
1.63
+++ testsuite/actionscript.all/Object.as        28 Apr 2008 13:43:00 -0000      
1.64
@@ -21,7 +21,7 @@
 // execute it like this gnash -1 -r 0 -v out.swf
 
 
-rcsid="$Id: Object.as,v 1.63 2008/04/09 09:51:21 zoulunkai Exp $";
+rcsid="$Id: Object.as,v 1.64 2008/04/28 13:43:00 bwy Exp $";
 #include "check.as"
 
 // Test things in Class Object (swf5~swf8)
@@ -822,11 +822,33 @@
 #endif // OUTPUT_VERSION > 5
 
 
+nothing = new Object ();
+nothing.toString = function() { return "toString"; };
+
+check_equals ("string + " + nothing, "string + toString");
+nothing.__proto__ = undefined;
+#if OUTPUT_VERSION < 7
+check_equals ("string + " + nothing, "string + ");
+#else
+check_equals ("string + " + nothing, "string + undefined");
+#endif
+
+nothing2 = new Object();
+nothing2.__proto__ = undefined;
+#if OUTPUT_VERSION < 7
+check_equals ("string + " + nothing2, "string + ");
+#else
+check_equals ("string + " + nothing, "string + undefined");
+#endif
+
+nothing2.valueOf = function() { return "valueOf"; };
+check_equals ("string + " + nothing2, "string + valueOf");
+
 #if OUTPUT_VERSION <= 5
-totals(79);
+totals(83);
 #endif
 
 #if OUTPUT_VERSION >= 6
-totals(258);
+totals(262);
 #endif
 




reply via email to

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