[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Matr...
From: |
Benjamin Wolsey |
Subject: |
[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Matr... |
Date: |
Sat, 07 Jun 2008 12:44:27 +0000 |
CVSROOT: /sources/gnash
Module name: gnash
Changes by: Benjamin Wolsey <bwy> 08/06/07 12:44:26
Modified files:
. : ChangeLog
testsuite/actionscript.all: Matrix.as
Log message:
* testsuite/actionscript.all/Matrix_as: tests for clone() and
properties.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.6853&r2=1.6854
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/Matrix.as?cvsroot=gnash&r1=1.2&r2=1.3
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.6853
retrieving revision 1.6854
diff -u -b -r1.6853 -r1.6854
--- ChangeLog 7 Jun 2008 12:11:33 -0000 1.6853
+++ ChangeLog 7 Jun 2008 12:44:25 -0000 1.6854
@@ -1,5 +1,10 @@
2008-06-07 Benjamin Wolsey <address@hidden>
+ * testsuite/actionscript.all/Matrix_as: tests for clone() and
+ properties.
+
+2008-06-07 Benjamin Wolsey <address@hidden>
+
* server/asobj/flash/geom/Point_as{h,cpp}: move class declaration
to header, as Matrix_as needs to construct points.
* server/asobj/flash/geom/Matrix_as.{cpp,h}: implement getter/setters,
Index: testsuite/actionscript.all/Matrix.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/Matrix.as,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/actionscript.all/Matrix.as 7 Jun 2008 12:11:34 -0000
1.2
+++ testsuite/actionscript.all/Matrix.as 7 Jun 2008 12:44:26 -0000
1.3
@@ -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: Matrix.as,v 1.2 2008/06/07 12:11:34 bwy Exp $";
+rcsid="$Id: Matrix.as,v 1.3 2008/06/07 12:44:26 bwy Exp $";
// There are lots of floating point calculations here. Comparing them
@@ -42,8 +42,18 @@
check_equals(typeof(Matrix), 'function');
check_equals(typeof(Matrix.prototype), 'object');
// TODO: check prototypes properties
-//check(Point.prototype.hasOwnProperty('length'));
-
+check(Matrix.prototype.hasOwnProperty('identity'));
+check(Matrix.prototype.hasOwnProperty('rotate'));
+check(Matrix.prototype.hasOwnProperty('concat'));
+check(Matrix.prototype.hasOwnProperty('translate'));
+check(Matrix.prototype.hasOwnProperty('scale'));
+check(Matrix.prototype.hasOwnProperty('transformPoint'));
+check(Matrix.prototype.hasOwnProperty('deltaTransformPoint'));
+check(Matrix.prototype.hasOwnProperty('createBox'));
+check(Matrix.prototype.hasOwnProperty('clone'));
+check(Matrix.prototype.hasOwnProperty('createGradientBox'));
+check(Matrix.prototype.hasOwnProperty('invert'));
+check(Matrix.prototype.hasOwnProperty('toString'));
//-------------------------------------------------------------
// Test constructor
@@ -162,6 +172,11 @@
m3.scale(3, 4);
check_equals(m3.toString(), "(a=6, b=0, c=0, d=8, tx=300, ty=400)");
+// Test clone
+m4 = m3.clone();
+check_equals(m4.toString(), "(a=6, b=0, c=0, d=8, tx=300, ty=400)");
+
+// Test invert
m3.invert();
xcheck_equals(m3.toString(), "(a=0.166666666666667, b=0, c=0, d=0.125, tx=-50,
ty=-50)");
@@ -184,6 +199,8 @@
check_equals(m3.tx.toString(), "0");
check_equals(m3.ty.toString(), "0");
+
+
//-------------------------------------------------------------
// END OF TEST
//-------------------------------------------------------------
- [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Matr...,
Benjamin Wolsey <=