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 loadMovieTestRunn...


From: Sandro Santilli
Subject: [Gnash-commit] gnash/testsuite/misc-ming.all loadMovieTestRunn...
Date: Wed, 09 Jan 2008 17:49:31 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  08/01/09 17:49:31

Modified files:
        testsuite/misc-ming.all: loadMovieTestRunner.cpp 

Log message:
        Fix another couple of tests since Dejagnu clip introduction, sleep less.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/loadMovieTestRunner.cpp?cvsroot=gnash&r1=1.14&r2=1.15

Patches:
Index: loadMovieTestRunner.cpp
===================================================================
RCS file: /sources/gnash/gnash/testsuite/misc-ming.all/loadMovieTestRunner.cpp,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- loadMovieTestRunner.cpp     9 Jan 2008 17:09:16 -0000       1.14
+++ loadMovieTestRunner.cpp     9 Jan 2008 17:49:31 -0000       1.15
@@ -95,10 +95,10 @@
        assert(root.get());
 
        check_equals(root->get_frame_count(), 2);
-       check_equals(root->get_current_frame(), 1);
+       check_equals(root->get_current_frame(), 0);
 
        tester->advance();
-       check_equals(root->get_current_frame(), 0);
+       check_equals(root->get_current_frame(), 1);
 
        // Verify that 'coverart' exists and is empty
        character* coverartch = 
const_cast<character*>(tester->findDisplayItemByName(*root, "coverart"));
@@ -114,8 +114,8 @@
        tester->movePointerTo(80, 80);
        check(tester->isMouseOverMouseEntity());
        tester->pressMouseButton();
-       sleep(1); // give it some time...
        tester->advance(); // loads (should) happen on next advance
+       usleep(500); // give it some time... TODO: drop this test and use a 
self-containment instead
        coverartch = 
const_cast<character*>(tester->findDisplayItemByName(*root, "coverart"));
        check(coverart != coverartch->to_movie());
        coverart = coverartch->to_movie();
@@ -129,8 +129,8 @@
        tester->movePointerTo(280, 80);
        check(tester->isMouseOverMouseEntity());
        tester->click();
-       sleep(1); // give it some time...
        tester->advance(); // loads (should) happen on next advance
+       usleep(500); // give it some time... TODO: drop this test and use a 
self-containment instead
        coverartch = 
const_cast<character*>(tester->findDisplayItemByName(*root, "coverart"));
        coverart = coverartch->to_movie();
        check_equals(coverart->get_movie_definition()->get_url(), 
greenURL.str());
@@ -144,8 +144,8 @@
        tester->movePointerTo(480, 80);
        check(tester->isMouseOverMouseEntity());
        tester->click();
-       sleep(1); // give it some time to load
        tester->advance(); // loads (should) happen on next advance
+       usleep(500); // give it some time... TODO: drop this test and use a 
self-containment instead
        coverartch = 
const_cast<character*>(tester->findDisplayItemByName(*root, "coverart"));
        coverart = coverartch->to_movie();
        check_equals(coverart->get_movie_definition()->get_url(), 
offspringURL.str());




reply via email to

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