[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9871: Few more tests for matrix of
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9871: Few more tests for matrix of root. |
Date: |
Mon, 29 Sep 2008 22:09:34 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9871
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Mon 2008-09-29 22:09:34 +0200
message:
Few more tests for matrix of root.
modified:
testsuite/actionscript.all/MovieClip.as
=== modified file 'testsuite/actionscript.all/MovieClip.as'
--- a/testsuite/actionscript.all/MovieClip.as 2008-09-29 16:22:44 +0000
+++ b/testsuite/actionscript.all/MovieClip.as 2008-09-29 20:09:34 +0000
@@ -103,7 +103,7 @@
#endif
#if OUTPUT_VERSION >= 8
- check_totals(779); // SWF8+
+ check_totals(783); // SWF8+
#endif
play();
@@ -1461,8 +1461,19 @@
_root.transform.matrix.ty = 300;
check_equals(_root._y, 20); // changing the AS matrix doesn't change the
actual matrix
+check_equals(_root.transform.matrix.toString(), "(a=0, b=-1, c=-2, d=0, tx=30,
ty=20)");
+
_root._x = _root._y = _root._rotation = 0;
-_root._xscale = _root._yscale = 100;
+
+check_equals(_root.transform.matrix.toString(), "(a=1, b=0, c=0, d=-2, tx=0,
ty=0)");
+
+_root._xscale = 100;
+
+check_equals(_root.transform.matrix.toString(), "(a=1, b=0, c=0, d=-2, tx=0,
ty=0)");
+
+_root._yscale = 100;
+
+check_equals(_root.transform.matrix.toString(), "(a=1, b=0, c=0, d=1, tx=0,
ty=0)");
OldTransform = flash.geom.Transform;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9871: Few more tests for matrix of root.,
Sandro Santilli <=