[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash/testsuite/actionscript.all toString_value...
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] gnash/testsuite/actionscript.all toString_value... |
Date: |
Wed, 26 Sep 2007 14:54:43 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/09/26 14:54:43
Modified files:
testsuite/actionscript.all: toString_valueOf.as
Log message:
comments cleanup and check to check_equals
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/toString_valueOf.as?cvsroot=gnash&r1=1.15&r2=1.16
Patches:
Index: toString_valueOf.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/toString_valueOf.as,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- toString_valueOf.as 26 Sep 2007 14:44:16 -0000 1.15
+++ toString_valueOf.as 26 Sep 2007 14:54:43 -0000 1.16
@@ -69,8 +69,8 @@
// Object object still supports toString and valueOf in swf5
check_equals(typeof(Object.prototype['toString']), 'function');
check_equals(typeof(Object.prototype['valueOf']), 'function');
- // this is true because Function object in swf5 does not
- // support toString and valueOf.
+ // this is true because a function is considered like an undefined
+ // value in equality context.
check_equals(Object.prototype.toString, undefined);
check_equals(Object.prototype.valueOf, undefined);
#endif
@@ -273,8 +273,8 @@
check(typeof(TextField.prototype.valueOf) == 'function' );
#else
// TextField in swf5 does not have toString and valueOf methods(to be
checked).
- xcheck(typeof(TextField.prototype.toString) == 'undefined' );
- xcheck(typeof(TextField.prototype.valueOf) == 'undefined' );
+ xcheck_equals(typeof(TextField.prototype.toString), 'undefined' );
+ xcheck_equals(typeof(TextField.prototype.valueOf), 'undefined' );
#endif
// For TextFields, this true from swf5~swf8!
- [Gnash-commit] gnash/testsuite/actionscript.all toString_value...,
Sandro Santilli <=