[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9820: Add more matrix tests
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9820: Add more matrix tests |
Date: |
Tue, 23 Sep 2008 11:04:01 +0200 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9820
committer: Sandro Santilli <address@hidden>
branch nick: trunk
timestamp: Tue 2008-09-23 11:04:01 +0200
message:
Add more matrix tests
modified:
testsuite/actionscript.all/MovieClip.as
=== modified file 'testsuite/actionscript.all/MovieClip.as'
--- a/testsuite/actionscript.all/MovieClip.as 2008-09-23 08:41:44 +0000
+++ b/testsuite/actionscript.all/MovieClip.as 2008-09-23 09:04:01 +0000
@@ -95,15 +95,15 @@
#endif
#if OUTPUT_VERSION == 6
- check_totals(706); // SWF6
+ check_totals(722); // SWF6
#endif
#if OUTPUT_VERSION == 7
- check_totals(723); // SWF7
+ check_totals(739); // SWF7
#endif
#if OUTPUT_VERSION >= 8
- check_totals(754); // SWF8+
+ check_totals(776); // SWF8+
#endif
play();
@@ -1091,8 +1091,8 @@
draw._rotation = 90;
#if OUTPUT_VERSION >= 8
-check_equals(printMatrix(draw.transform.matrix, 0), "(a=0, b=1, c=-1, d=0,
tx=0, ty=0)");
-check_equals(printMatrix(container.transform.matrix, 0), "(a=1, b=0, c=0, d=1,
tx=0, ty=0)");
+check_equals(printMatrix(draw.transform.matrix, 2), "(a=0, b=1, c=-1, d=0,
tx=0, ty=0)");
+check_equals(printMatrix(container.transform.matrix, 2), "(a=1, b=0, c=0, d=1,
tx=0, ty=0)");
#endif
check_equals(draw._width, 20);
@@ -1161,20 +1161,62 @@
check_equals(draw._yscale, -50);
check_equals(draw._height, 10);
+#if OUTPUT_VERSION >= 8
+check_equals(printMatrix(draw.transform.matrix, 2), "(a=1, b=0, c=0, d=-0.5,
tx=0, ty=0)");
+#endif
+b = draw.getBounds(container); // these are transformed by container draw
matrix
+check_equals(b.xMin, 10);
+check_equals(b.xMax, 20);
+check_equals(b.yMin, -15);
+check_equals(b.yMax, -5);
+
draw._xscale = -50;
check_equals(draw._xscale, -50);
check_equals(draw._width, 5);
+#if OUTPUT_VERSION >= 8
+check_equals(printMatrix(draw.transform.matrix, 2), "(a=-0.5, b=0, c=0,
d=-0.5, tx=0, ty=0)");
+#endif
+b = draw.getBounds(container); // these are transformed by container draw
matrix
+check_equals(b.xMin, -10);
+check_equals(b.xMax, -5);
+check_equals(b.yMin, -15);
+check_equals(b.yMax, -5);
+
draw._width = 10;
check_equals(draw._xscale, 100); // reset to positive on setting _width
+#if OUTPUT_VERSION >= 8
+xcheck_equals(printMatrix(draw.transform.matrix, 2), "(a=1, b=0, c=0, d=0.5,
tx=0, ty=0)");
+#endif
+b = draw.getBounds(container); // these are transformed by container draw
matrix
+xcheck_equals(b.xMin, 10);
+xcheck_equals(b.xMax, 20);
+xcheck_equals(b.yMin, 5);
+xcheck_equals(b.yMax, 15);
+
draw._height = 10;
check_equals(draw._yscale, 50); // reset to positive on setting _height
+#if OUTPUT_VERSION >= 8
+check_equals(printMatrix(draw.transform.matrix, 2), "(a=1, b=0, c=0, d=0.5,
tx=0, ty=0)");
+#endif
+b = draw.getBounds(container); // these are transformed by container draw
matrix
+check_equals(b.xMin, 10);
+check_equals(b.xMax, 20);
+check_equals(b.yMin, 5);
+check_equals(b.yMax, 15);
+
container._xscale = 100;
container._yscale = 100;
draw._yscale = 100;
draw._xscale = 100;
+
+#if OUTPUT_VERSION >= 8
+check_equals(printMatrix(draw.transform.matrix, 2), "(a=1, b=0, c=0, d=1,
tx=0, ty=0)");
+check_equals(printMatrix(container.transform.matrix, 0), "(a=1, b=0, c=0, d=1,
tx=0, ty=0)");
+#endif
+
b = draw.getBounds(container); // these are transformed by container draw
matrix
check_equals(b.xMin, 10);
check_equals(b.xMax, 20);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9820: Add more matrix tests,
Sandro Santilli <=