[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r9878: Round more for the checks onl
From: |
Sandro Santilli |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r9878: Round more for the checks only failing due to accuracy. This way we have |
Date: |
Tue, 30 Sep 2008 13:14:16 -0400 |
User-agent: |
Bazaar (1.5) |
------------------------------------------------------------
revno: 9878
committer: Sandro Santilli <address@hidden>
branch nick: gnash-head
timestamp: Tue 2008-09-30 13:14:16 -0400
message:
Round more for the checks only failing due to accuracy. This way we have
NO expected failures in matrix_test.swf and can work on getting some of
them (in particular a reproduction of the one failing in MovieClip.as
with the get_parent hack in ::set_rotation removed)
modified:
testsuite/misc-ming.all/matrix_test.c
=== modified file 'testsuite/misc-ming.all/matrix_test.c'
--- a/testsuite/misc-ming.all/matrix_test.c 2008-09-30 15:15:39 +0000
+++ b/testsuite/misc-ming.all/matrix_test.c 2008-09-30 17:14:16 +0000
@@ -1201,14 +1201,14 @@
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'107,183 294,217'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,180 290,220'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=0.08, c=-0.91, d=-0.41, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 1)",
"'(a=-2.2, b=0.1, c=-0.9, d=-0.4, tx=200, ty=200)'");
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'106,185 294,215'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,190 290,210'");
SWFMovie_nextFrame(mo);
@@ -1236,18 +1236,18 @@
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110
230,290'");
add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=-0.08, c=0.91, d=-0.41, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 1)",
"'(a=-2.2, b=-0.1, c=0.9, d=-0.4, tx=200, ty=200)'");
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'106,185 294,215'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,190 290,210'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)",
"'(a=-2.23, b=0.08, c=0.88, d=-0.48, tx=200, ty=200)'");
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'107,183 294,217'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,180 290,220'");
SWFMovie_nextFrame(mo);
@@ -1275,18 +1275,18 @@
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110
230,290'");
add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=-0.08, c=-0.91, d=0.41, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 1)",
"'(a=-2.2, b=-0.1, c=-0.9, d=0.4, tx=200, ty=200)'");
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'106,185 294,215'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,190 290,210'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)",
"'(a=-2.23, b=0.08, c=-0.88, d=0.48, tx=200, ty=200)'");
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'107,183 294,217'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,180 290,220'");
SWFMovie_nextFrame(mo);
@@ -1315,18 +1315,18 @@
check_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'170,110
230,290'");
add_actions(mo, "staticmc._rotation = 2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=-0.08, c=-0.91, d=0.41, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 1)",
"'(a=-2.2, b=-0.1, c=-0.9, d=0.4, tx=200, ty=200)'");
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'106,185 294,215'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,190 290,210'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)",
"'(a=-2.23, b=0.08, c=-0.88, d=0.48, tx=200, ty=200)'");
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'107,183 294,217'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,180 290,220'");
SWFMovie_nextFrame(mo);
@@ -1358,14 +1358,14 @@
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'107,183 294,217'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,180 290,220'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=0.08, c=0.91, d=0.41, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 1)",
"'(a=-2.2, b=0.1, c=0.9, d=0.4, tx=200, ty=200)'");
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'106,185 294,215'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,190 290,210'");
SWFMovie_nextFrame(mo);
@@ -1398,14 +1398,14 @@
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'107,183 294,217'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,180 290,220'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
- xcheck_equals(mo, "printMatrix(staticmc.transform.matrix, 2)", "'(a=-2.23,
b=0.08, c=-0.91, d=-0.41, tx=200, ty=200)'");
+ check_equals(mo, "printMatrix(staticmc.transform.matrix, 1)",
"'(a=-2.2, b=0.1, c=-0.9, d=-0.4, tx=200, ty=200)'");
check_equals(mo, "staticmc._yscale", "-100");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)",
"'106,185 294,215'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)",
"'110,190 290,210'");
SWFMovie_nextFrame(mo);
@@ -1484,7 +1484,7 @@
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'81,156
319,244'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)", "'80,160
320,240'");
SWFMovie_nextFrame(mo);
@@ -1555,7 +1555,7 @@
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'81,156
319,244'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)", "'80,160
320,240'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)",
"'(a=-2.23, b=0.08, c=-1.83, d=-1.28, tx=200, ty=200)'");
@@ -1602,7 +1602,7 @@
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'81,156
319,244'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)", "'80,160
320,240'");
SWFMovie_nextFrame(mo);
@@ -1681,7 +1681,7 @@
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "-2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'81,156
319,244'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)", "'80,160
320,240'");
SWFMovie_nextFrame(mo);
@@ -1713,7 +1713,7 @@
check_equals(mo, "Math.round(staticmc._yscale)", "-224");
check_equals(mo, "Math.round(staticmc._xscale)", "-224");
check_equals(mo, "staticmc._rotation", "2");
- xcheck_equals(mo, "printBounds(staticmc.getBounds(_root), 0)", "'81,156
319,244'");
+ check_equals(mo, "printBounds(staticmc.getBounds(_root), -1)", "'80,160
320,240'");
add_actions(mo, "staticmc._rotation = -2;"); // change _rotation using
ActionScript
check_equals(mo, "printMatrix(staticmc.transform.matrix, 2)",
"'(a=-2.23, b=0.08, c=-1.83, d=-1.28, tx=200, ty=200)'");
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r9878: Round more for the checks only failing due to accuracy. This way we have,
Sandro Santilli <=