CVSROOT: /sources/gnash Module name: gnash Changes by: Sandro Santilli <strk> 07/08/02 19:10:51
Modified files: . : ChangeLog testsuite/actionscript.all: Function.as ops.as Log message: * testsuite/actionscript.all/: Function.as, ops.as: Moved tests for equality operator against MovieClip where it belongs. CVSWeb URLs: http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3919&r2=1.3920 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Function.as?cvsroot=gnash&r1=1.52&r2=1.53 http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/ops.as?cvsroot=gnash&r1=1.6&r2=1.7 Patches: Index: ChangeLog =================================================================== RCS file: /sources/gnash/gnash/ChangeLog,v retrieving revision 1.3919 retrieving revision 1.3920 diff -u -b -r1.3919 -r1.3920 --- ChangeLog 2 Aug 2007 18:56:59 -0000 1.3919 +++ ChangeLog 2 Aug 2007 19:10:51 -0000 1.3920 @@ -1,5 +1,11 @@ 2007-08-02 Sandro Santilli <[EMAIL PROTECTED]> + * testsuite/actionscript.all/: Function.as, ops.as: + Moved tests for equality operator against MovieClip where + it belongs. + +2007-08-02 Sandro Santilli <[EMAIL PROTECTED]> + * testsuite/actionscript.all/MovieClip.as: test MovieClip.valueOf(). * server/as_value.{cpp,h}: as_environment parameter made mandatory for the equals() method. Index: testsuite/actionscript.all/Function.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Function.as,v retrieving revision 1.52 retrieving revision 1.53 diff -u -b -r1.52 -r1.53 --- testsuite/actionscript.all/Function.as 26 Jul 2007 03:41:18 -0000 1.52 +++ testsuite/actionscript.all/Function.as 2 Aug 2007 19:10:51 -0000 1.53 @@ -21,7 +21,7 @@ // compile this test case with Ming makeswf, and then // execute it like this gnash -1 -r 0 -v out.swf -rcsid="$Id: Function.as,v 1.52 2007/07/26 03:41:18 strk Exp $"; +rcsid="$Id: Function.as,v 1.53 2007/08/02 19:10:51 strk Exp $"; #include "check.as" @@ -674,12 +674,6 @@ o.num = 5; testInFunctionContext(o); -// Quick test to verify that a movieclip is never equal to an object, despite it's primitive value -o = new Object(); -o.valueOf = function() { return _root; }; -check_equals(_root, o); -check_equals(o, _root); - //----------------------------------------------------------------------------- // Test local vars scope of outer function to be kept alive by inner functions //----------------------------------------------------------------------------- Index: testsuite/actionscript.all/ops.as =================================================================== RCS file: /sources/gnash/gnash/testsuite/actionscript.all/ops.as,v retrieving revision 1.6 retrieving revision 1.7 diff -u -b -r1.6 -r1.7 --- testsuite/actionscript.all/ops.as 2 Aug 2007 17:35:57 -0000 1.6 +++ testsuite/actionscript.all/ops.as 2 Aug 2007 19:10:51 -0000 1.7 @@ -20,7 +20,7 @@ * Test binary predicates (equal, less_then, greater_then, logical and bitwise ops) */ -rcsid="$Id: ops.as,v 1.6 2007/08/02 17:35:57 strk Exp $"; +rcsid="$Id: ops.as,v 1.7 2007/08/02 19:10:51 strk Exp $"; #include "check.as" @@ -78,6 +78,13 @@ xcheck( str1 == str2 ); // SWF5 automatically converts to a string for comparison ! #endif // OUTPUT_VERSION <= 5 +// for MovieClip + +check("_root" != _root); +check(_root != "_root"); +o = new Object(); o.valueOf = function() { return _root; }; +check_equals(_root, o); +check_equals(o, _root); //--------------------------------------------- // Less then operator (ACTION_LESSTHAN : 0x0F) _______________________________________________ Gnash-commit mailing list Gnash-commit@gnu.org http://lists.gnu.org/mailman/listinfo/gnash-commit