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/Func...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Func...
Date: Wed, 22 Nov 2006 14:58:25 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/11/22 14:58:25

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

Log message:
                * testsuite/actionscript.all/Function.as: tweaked
                  tests to take into account differences in numerical
                  computations between SWF target version.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1709&r2=1.1710
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Function.as?cvsroot=gnash&r1=1.16&r2=1.17

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1709
retrieving revision 1.1710
diff -u -b -r1.1709 -r1.1710
--- ChangeLog   22 Nov 2006 14:38:32 -0000      1.1709
+++ ChangeLog   22 Nov 2006 14:58:24 -0000      1.1710
@@ -1,5 +1,8 @@
 2006-11-22 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/Function.as: tweaked
+         tests to take into account differences in numerical
+         computations between SWF target version.
        * testsuite/actionscript.all/XML.as: fixed test.
        * testsuite/actionscript.all/Video.as:
          attach => attachVideo, expect Video

Index: testsuite/actionscript.all/Function.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Function.as,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -b -r1.16 -r1.17
--- testsuite/actionscript.all/Function.as      6 Nov 2006 16:42:01 -0000       
1.16
+++ testsuite/actionscript.all/Function.as      22 Nov 2006 14:58:25 -0000      
1.17
@@ -20,7 +20,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.16 2006/11/06 16:42:01 strk Exp $";
+rcsid="$Id: Function.as,v 1.17 2006/11/22 14:58:25 strk Exp $";
 
 #include "check.as"
 
@@ -45,7 +45,11 @@
 
 // Test invalid Function.apply calls
 var ret=getThisName.apply();
+#if OUTPUT_VERSION > 6
+xcheck ( isNaN(ret) ); // result of the *numerical* sum of all undefined
+#else
 check_equals ( ret , 0 ); // result of the *numerical* sum of all undefined
+#endif
 var ret=getThisName.apply(this_ref, [4,5,6], 4);
 check_equals ( ret , "extname456" );
 var ret=getThisName.apply(this_ref, "8");
@@ -61,11 +65,23 @@
 check_equals ( ret , "extname" );
 #endif
 var ret=getThisName.apply(undefined, [4,5,6], 4);
+#if OUTPUT_VERSION >= 7
+xcheck ( isNaN(ret) ); // the sum will be considered numerical
+#else
 check_equals ( ret , 15 ); // the sum will be considered numerical
+#endif
 var ret=getThisName.apply(undefined, 7);
+#if OUTPUT_VERSION >= 7
+xcheck ( isNaN(ret) ); 
+#else
 check_equals ( ret , 0 );
+#endif
 var ret=getThisName.apply(undefined, "7");
+#if OUTPUT_VERSION >= 7
+xcheck ( isNaN(ret) ); 
+#else
 check_equals ( ret , 0 );
+#endif
 
 // Test Function.call(arg1, arg2, arg3)
 check ( getThisName.call(this_ref, 1, 2, 3) == "extname123" );




reply via email to

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