gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/testsuite/actionscript.all Color.as


From: Zou Lunkai
Subject: [Gnash-commit] gnash/testsuite/actionscript.all Color.as
Date: Wed, 21 May 2008 07:56:45 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  08/05/21 07:56:45

Modified files:
        testsuite/actionscript.all: Color.as 

Log message:
        one more test.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Color.as?cvsroot=gnash&r1=1.18&r2=1.19

Patches:
Index: Color.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Color.as,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -b -r1.18 -r1.19
--- Color.as    21 May 2008 07:26:09 -0000      1.18
+++ Color.as    21 May 2008 07:56:45 -0000      1.19
@@ -22,7 +22,7 @@
 // execute it like this gnash -1 -r 0 -v out.swf
 
 
-rcsid="$Id: Color.as,v 1.18 2008/05/21 07:26:09 zoulunkai Exp $";
+rcsid="$Id: Color.as,v 1.19 2008/05/21 07:56:45 zoulunkai Exp $";
 #include "check.as"
 
 //--------------------------------
@@ -268,6 +268,14 @@
 trans.ab = 10;
 // _alpha is not calculated correctly. Not sure about the algorithm at the 
moment. 
 xcheck_equals(mc1._alpha, -12800);
+
+mc1._alpha = 60;
+trans2 = colorObj.getTransform();
+// 59.765625: value retrieved from AS
+// int(60 / 100.0 * 256): value stored in cxform. 
+// 59.765625 == int(60 / 100.0 * 256) / 2.56
+xcheck(trans2.aa - 59.765625 < 0.0000001);
+check_equals(trans.ab, 10);
 #endif
 
 //




reply via email to

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