gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash/testsuite/misc-ming.all getTimer_test.c


From: Zou Lunkai
Subject: [Gnash-commit] gnash/testsuite/misc-ming.all getTimer_test.c
Date: Thu, 17 May 2007 10:21:15 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Zou Lunkai <zoulunkai>  07/05/17 10:21:15

Modified files:
        testsuite/misc-ming.all: getTimer_test.c 

Log message:
        make the tests be more tolerant

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/getTimer_test.c?cvsroot=gnash&r1=1.1&r2=1.2

Patches:
Index: getTimer_test.c
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/getTimer_test.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- getTimer_test.c     17 May 2007 09:23:27 -0000      1.1
+++ getTimer_test.c     17 May 2007 10:21:14 -0000      1.2
@@ -47,7 +47,7 @@
   Ming_init();
   mo = newSWFMovieWithVersion(OUTPUT_VERSION);
   SWFMovie_setDimension(mo, 800, 600);
-  SWFMovie_setRate (mo, 10.0);
+  SWFMovie_setRate (mo, 1.0);
 
   dejagnuclip = get_dejagnu_clip((SWFBlock)get_default_font(srcdir), 10, 0, 0, 
800, 600);
   SWFMovie_add(mo, (SWFBlock)dejagnuclip);
@@ -60,12 +60,15 @@
   
   add_actions(mo, "x2 = getTimer();");
   
+  // just delay some time here
+  add_actions(mo, " for(i=0; i<3000; i++) {} ");
+  
   // check that the timer is working
   check(mo, "x2 > x1" );
 
-  // this is dependent on frame rate(current setting is 100ms per frame)
-  // check(mo, "x2 > 100");
-  check(mo, "x2 < 400");
+  // this is dependent on frame rate(current setting is 1 second per frame)
+  // check(mo, "x2 > 1000");
+  check(mo, "x2 < 6000");
 
   // check that "getTimer" return a intergral number
   check(mo, "x2 == Math.ceil(x2)");




reply via email to

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