[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Stri...
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Stri... |
Date: |
Thu, 17 Apr 2008 12:39:22 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/04/17 12:39:22
Modified files:
. : ChangeLog
testsuite/actionscript.all: String.as case.as
Log message:
* testsuite/actionscript.all/case.as: test for case collision
in _global properties.
* testsuite/actionscript.all/String.as: test SWF5 properties
too.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6316&r2=1.6317
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/String.as?cvsroot=gnash&r1=1.54&r2=1.55
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/case.as?cvsroot=gnash&r1=1.19&r2=1.20
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6316
retrieving revision 1.6317
diff -u -b -r1.6316 -r1.6317
--- ChangeLog 17 Apr 2008 10:58:00 -0000 1.6316
+++ ChangeLog 17 Apr 2008 12:39:21 -0000 1.6317
@@ -1,3 +1,10 @@
+2008-04-17 Benjamin Wolsey <address@hidden>
+
+ * testsuite/actionscript.all/case.as: test for case collision
+ in _global properties.
+ * testsuite/actionscript.all/String.as: test SWF5 properties
+ too.
+
2008-04-17 Sandro Santilli <address@hidden>
* server/parser/movie_def_impl.{cpp,h}:
Index: testsuite/actionscript.all/String.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/String.as,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -b -r1.54 -r1.55
--- testsuite/actionscript.all/String.as 31 Mar 2008 17:17:16 -0000
1.54
+++ testsuite/actionscript.all/String.as 17 Apr 2008 12:39:22 -0000
1.55
@@ -17,7 +17,7 @@
// Original author: Mike Carlson - June 19th, 2006
-rcsid="$Id: String.as,v 1.54 2008/03/31 17:17:16 strk Exp $";
+rcsid="$Id: String.as,v 1.55 2008/04/17 12:39:22 bwy Exp $";
#include "check.as"
check_equals(typeof(String), 'function');
@@ -59,6 +59,9 @@
check_equals(typeof(String.fromCharCode), 'function');
#if OUTPUT_VERSION > 5
+
+// Tests for SWF5 at the end of the file.
+
check(String.hasOwnProperty('fromCharCode'));
check(!String.hasOwnProperty('toString'));
check(!String.hasOwnProperty('valueOf'));
@@ -77,8 +80,8 @@
check(String.prototype.hasOwnProperty('split'));
check(String.prototype.hasOwnProperty('substr'));
check(!String.prototype.hasOwnProperty('length'));
-#endif
+#endif
check_equals(typeof(String()), 'string');
@@ -811,8 +814,37 @@
a=new Array(); for (v in String) a.push(v); a.sort();
check_equals(a.toString(), "gotcha,toString");
+#if OUTPUT_VERSION == 5
+// This here to avoid changing SWF5 String properties
+// before testing them.
+
+String.prototype.hasOwnProperty = ASnative(101, 5);
+String.hasOwnProperty = ASnative(101, 5);
+
+check(!String.hasOwnProperty('toString'));
+check(!String.hasOwnProperty('valueOf'));
+check(String.hasOwnProperty('__proto__'));
+check(String.hasOwnProperty('fromCharCode'));
+
+check(String.prototype.hasOwnProperty('valueOf'));
+check(String.prototype.hasOwnProperty('toString'));
+check(String.prototype.hasOwnProperty('toUpperCase'));
+check(String.prototype.hasOwnProperty('toLowerCase'));
+check(String.prototype.hasOwnProperty('charAt'));
+check(String.prototype.hasOwnProperty('charCodeAt'));
+check(String.prototype.hasOwnProperty('concat'));
+check(String.prototype.hasOwnProperty('indexOf'));
+check(String.prototype.hasOwnProperty('lastIndexOf'));
+check(String.prototype.hasOwnProperty('slice'));
+check(String.prototype.hasOwnProperty('substring'));
+check(String.prototype.hasOwnProperty('split'));
+check(String.prototype.hasOwnProperty('substr'));
+check(!String.prototype.hasOwnProperty('length'));
+
+#endif
+
#if OUTPUT_VERSION < 6
- check_totals(222);
+ check_totals(240);
#else
check_totals(256);
#endif
Index: testsuite/actionscript.all/case.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/case.as,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -b -r1.19 -r1.20
--- testsuite/actionscript.all/case.as 11 Mar 2008 19:31:48 -0000 1.19
+++ testsuite/actionscript.all/case.as 17 Apr 2008 12:39:22 -0000 1.20
@@ -23,7 +23,7 @@
*/
-rcsid="$Id: case.as,v 1.19 2008/03/11 19:31:48 strk Exp $";
+rcsid="$Id: case.as,v 1.20 2008/04/17 12:39:22 bwy Exp $";
#include "check.as"
#if OUTPUT_VERSION <= 6 // {
@@ -297,12 +297,33 @@
check_equals(propRecorder[1], 'a');
#endif
+
+#if OUTPUT_VERSION > 5
+// Check that properties are not overridden by
+// variable names.
+_global.hasOwnProperty = ASnative(101, 5);
+
+check(_global.hasOwnProperty("Date"));
+# if OUTPUT_VERSION == 6
+check(_global.hasOwnProperty("date"));
+# endif
+Color = 5;
+color = 8;
+
+check(_global.hasOwnProperty("Color"));
+# if OUTPUT_VERSION == 6
+check(_global.hasOwnProperty("color"));
+# endif
+
+#endif
+
+
#if OUTPUT_VERSION <= 5
check_totals(23);
#endif
#if OUTPUT_VERSION == 6
- check_totals(48);
+ check_totals(52);
#endif
#if OUTPUT_VERSION >= 7
- check_totals(44);
+ check_totals(46);
#endif
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Stri...,
Benjamin Wolsey <=