CVSROOT: /sources/gnash
Module name: gnash
Changes by: Sandro Santilli <strk> 07/04/19 15:42:20
Modified files:
. : ChangeLog
testsuite/misc-ming.all: matrix_test.c
Log message:
* testsuite/misc-ming.all/matrix_test.c: tolerate an
error of 1/100 when testing _rotation.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.2932&r2=1.2933
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/matrix_test.c?cvsroot=gnash&r1=1.3&r2=1.4
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.2932
retrieving revision 1.2933
diff -u -b -r1.2932 -r1.2933
--- ChangeLog 19 Apr 2007 15:17:33 -0000 1.2932
+++ ChangeLog 19 Apr 2007 15:42:20 -0000 1.2933
@@ -1,3 +1,8 @@
+2007-04-19 Sandro Santilli <[EMAIL PROTECTED]>
+
+ * testsuite/misc-ming.all/matrix_test.c: tolerate an
+ error of 1/100 when testing _rotation.
+
2007-04-19 Udo Giacomozzi <[EMAIL PROTECTED]>
* testsuite/libamf.all/test_*.cpp: added dummy main() function
Index: testsuite/misc-ming.all/matrix_test.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/matrix_test.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -b -r1.3 -r1.4
--- testsuite/misc-ming.all/matrix_test.c 16 Apr 2007 08:07:56 -0000
1.3
+++ testsuite/misc-ming.all/matrix_test.c 19 Apr 2007 15:42:20 -0000
1.4
@@ -116,7 +116,7 @@
check_equals(mo, "staticmc._y", "300");
check_equals(mo, "Math.round(staticmc._xscale)", "100");
check_equals(mo, "Math.round(staticmc._yscale)", "100");
- check_equals(mo, "staticmc._rotation", "45");
+ check_equals(mo, "parseInt(staticmc._rotation*100)", "4500"); //
tolerate an error of 1/100
check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05
30.05,30.05'");
check_equals(mo, "printBounds(staticmc.getBounds(_root))", "'7.5,257.5
92.5,342.5'");
check_equals(mo, "staticmc._width", "85");
@@ -130,7 +130,7 @@
check_equals(mo, "staticmc._y", "300");
check_equals(mo, "Math.round(staticmc._xscale)", "200");
check_equals(mo, "Math.round(staticmc._yscale)", "300");
- check_equals(mo, "staticmc._rotation", "45");
+ check_equals(mo, "parseInt(staticmc._rotation*100)", "4500"); //
tolerate an error of 1/100
check_equals(mo, "printBounds(staticmc.getBounds())", "'-30.05,-30.05
30.05,30.05'");
check_equals(mo, "printBounds(staticmc.getBounds(_root))",
"'-56.25,193.75 156.25,406.25'");
check_equals(mo, "staticmc._width", "212.5");
_______________________________________________
Gnash-commit mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash-commit