gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi...


From: Zou Lunkai
Subject: [Gnash-commit] gnash ChangeLog testsuite/actionscript.all/Movi...
Date: Tue, 17 Jul 2007 08:00:30 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/07/17 08:00:30

Modified files:
        .              : ChangeLog 
        testsuite/actionscript.all: MovieClip.as 

Log message:
        * testsuite/actionscript.all/MovieClip.as: fix unsafe floating number
          comparison, better self-contained.(I got failures with the original  
check_equals)

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.3743&r2=1.3744
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/actionscript.all/MovieClip.as?cvsroot=gnash&r1=1.74&r2=1.75

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.3743
retrieving revision 1.3744
diff -u -b -r1.3743 -r1.3744
--- ChangeLog   17 Jul 2007 07:42:23 -0000      1.3743
+++ ChangeLog   17 Jul 2007 08:00:29 -0000      1.3744
@@ -2,6 +2,8 @@
 
        * testsuite/misc-ming.all/key_event_test5.c: make tests not dependent
          on the time of a key press, better self-contained.
+       * testsuite/actionscript.all/MovieClip.as: fix unsafe floating number
+         comparison, better self-contained.
        
 2007-07-17 Zou Lunkai <address@hidden>
 

Index: testsuite/actionscript.all/MovieClip.as
===================================================================
RCS file: /sources/gnash/gnash/testsuite/actionscript.all/MovieClip.as,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -b -r1.74 -r1.75
--- testsuite/actionscript.all/MovieClip.as     13 Jul 2007 20:40:32 -0000      
1.74
+++ testsuite/actionscript.all/MovieClip.as     17 Jul 2007 08:00:30 -0000      
1.75
@@ -22,7 +22,7 @@
 // compile this test case with Ming makeswf, and then
 // execute it like this gnash -1 -r 0 -v out.swf
 
-rcsid="$Id: MovieClip.as,v 1.74 2007/07/13 20:40:32 strk Exp $";
+rcsid="$Id: MovieClip.as,v 1.75 2007/07/17 08:00:30 zoulunkai Exp $";
 
 #include "check.as"
 
@@ -614,10 +614,14 @@
 check_equals(typeof(b.yMin), 'number');
 check_equals(typeof(b.yMax), 'number');
 // Returned number is (2^28/2)-1 twips : any ringing bell ?
-check_equals(b.xMin, 6710886.35);
-check_equals(b.xMax, 6710886.35);
-check_equals(b.yMin, 6710886.35);
-check_equals(b.yMax, 6710886.35);
+//check_equals(b.xMin, 6710886.35);
+//check_equals(b.xMax, 6710886.35);
+//check_equals(b.yMin, 6710886.35);
+//check_equals(b.yMax, 6710886.35);
+checks(b.xMin-6710886.35 < 0.001);
+checks(b.xMax-6710886.35 < 0.001);
+checks(b.yMin-6710886.35 < 0.001);
+checks(b.yMax-6710886.35 < 0.001);
 
 with (draw)
 {




reply via email to

[Prev in Thread] Current Thread [Next in Thread]