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


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi...
Date: Wed, 30 Apr 2008 15:42:00 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/04/30 15:42:00

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

Log message:
        add test for setting _alpha, Gnash fails (potlatch scissors case).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6464&r2=1.6465
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.130&r2=1.131

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6464
retrieving revision 1.6465
diff -u -b -r1.6464 -r1.6465
--- ChangeLog   30 Apr 2008 14:29:37 -0000      1.6464
+++ ChangeLog   30 Apr 2008 15:41:59 -0000      1.6465
@@ -1,5 +1,10 @@
 2008-04-30 Sandro Santilli <address@hidden>
 
+       * testsuite/actionscript.all/MovieClip.as: add test for setting
+         _alpha, Gnash fails (potlatch scissors case).
+
+2008-04-30 Sandro Santilli <address@hidden>
+
        * server/movie_root.{cpp,h}: allow setting background color
          only once (till the stage is reset by clear).
          TODO: check if background can change when loading something

Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.130
retrieving revision 1.131
diff -u -b -r1.130 -r1.131
--- testsuite/actionscript.all/MovieClip.as     29 Apr 2008 11:29:05 -0000      
1.130
+++ testsuite/actionscript.all/MovieClip.as     30 Apr 2008 15:42:00 -0000      
1.131
@@ -20,28 +20,28 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: MovieClip.as,v 1.130 2008/04/29 11:29:05 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.131 2008/04/30 15:42:00 strk Exp $";
 
-rcsid="$Id: MovieClip.as,v 1.130 2008/04/29 11:29:05 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.131 2008/04/30 15:42:00 strk Exp $";
 #include "check.as"
 
 // To be called at end of test
 endOfTest = function() 
 {
 #if OUTPUT_VERSION <= 5
-       check_totals(210); // SWF5
+       check_totals(231); // SWF5
 #endif
 
 #if OUTPUT_VERSION == 6
-       check_totals(629); // SWF6
+       check_totals(650); // SWF6
 #endif
 
 #if OUTPUT_VERSION == 7
-       check_totals(646); // SWF7
+       check_totals(667); // SWF7
 #endif
 
 #if OUTPUT_VERSION >= 8
-       check_totals(647); // SWF8+
+       check_totals(668); // SWF8+
 #endif
 
        play();
@@ -1218,6 +1218,62 @@
 #endif // OUTPUT_VERSION >= 6
 
 //----------------------------------------------
+// Test _alpha
+//----------------------------------------------
+
+_alpha = "string";
+check_equals(typeof(_alpha), 'number');
+xcheck_equals(_alpha, 100);
+
+_alpha = 25;
+check_equals(_alpha, 25);
+
+o = {}; o.valueOf = function() { return 50; };
+_alpha = o;
+check_equals(typeof(_alpha), 'number');
+check_equals(_alpha, 50);
+
+_alpha = undefined;
+check_equals(typeof(_alpha), 'number');
+xcheck_equals(_alpha, 50);
+
+_alpha = null;
+check_equals(typeof(_alpha), 'number');
+xcheck_equals(_alpha, 50);
+
+_alpha = NaN;
+check_equals(typeof(_alpha), 'number');
+xcheck_equals(_alpha, 50);
+
+_alpha = Infinite;
+check_equals(typeof(_alpha), 'number');
+xcheck_equals(_alpha, 50);
+
+_alpha = 0/0;
+check_equals(typeof(_alpha), 'number');
+xcheck_equals(_alpha, 50);
+
+_alpha = -50;
+check_equals(typeof(_alpha), 'number');
+check_equals(_alpha, -50);
+
+_alpha = -Infinite;
+check_equals(typeof(_alpha), 'number');
+#if OUTPUT_VERSION < 7
+ check_equals(_alpha, 0);
+#else
+ xcheck_equals(_alpha, -50);
+#endif
+
+_alpha = 100;
+_alpha = -(0/0);
+check_equals(typeof(_alpha), 'number');
+xcheck_equals(_alpha, 100);
+
+
+_alpha = 100;
+
+//----------------------------------------------
 // Test localToGlobal and globalToLocal
 //----------------------------------------------
 




reply via email to

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