gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp tests...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/MovieTester.cpp tests...
Date: Mon, 16 Oct 2006 14:21:53 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  06/10/16 14:21:53

Modified files:
        .              : ChangeLog 
        testsuite      : MovieTester.cpp MovieTester.h 

Log message:
                * testsuite/MovieTester.{cpp,h}: added call to set_current_root
                  (seems needed by notify_mouse_clicked) and new 
pressMouseButton()
                  and depressMouseButton() methods.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.1235&r2=1.1236
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.cpp?cvsroot=gnash&r1=1.2&r2=1.3
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/MovieTester.h?cvsroot=gnash&r1=1.2&r2=1.3

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.1235
retrieving revision 1.1236
diff -u -b -r1.1235 -r1.1236
--- ChangeLog   16 Oct 2006 14:16:53 -0000      1.1235
+++ ChangeLog   16 Oct 2006 14:21:53 -0000      1.1236
@@ -1,5 +1,8 @@
 2006-10-16 Sandro Santilli <address@hidden>
 
+       * testsuite/MovieTester.{cpp,h}: added call to set_current_root 
+         (seems needed by notify_mouse_clicked) and new pressMouseButton()
+         and depressMouseButton() methods.
        * server/movie_root.cpp (generate_mouse_button_events): use
          C++ style casts, assert that a "current root" has been set.
        * server/: action.cpp, action.h: added ROLLOVER and ROLLOUT standard

Index: testsuite/MovieTester.cpp
===================================================================
RCS file: /sources/gnash/gnash/testsuite/MovieTester.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/MovieTester.cpp   16 Oct 2006 11:54:50 -0000      1.2
+++ testsuite/MovieTester.cpp   16 Oct 2006 14:21:53 -0000      1.3
@@ -78,6 +78,11 @@
        assert(root);
        _movie_root = dynamic_cast<movie_root*>(root);
        assert(_movie_root);
+
+       // This is surely be needed by internal functions triggered
+       // by pressMouseButton and depressMouseButton
+       set_current_root(_movie_root);
+
        _movie = root->get_root_movie();
        assert(_movie);
 }
@@ -103,4 +108,16 @@
        _movie_root->notify_mouse_moved(x, y);
 }
 
+void
+MovieTester::pressMouseButton()
+{
+       _movie_root->notify_mouse_clicked(true, 1);
+}
+
+void
+MovieTester::depressMouseButton()
+{
+       _movie_root->notify_mouse_clicked(false, 1);
+}
+
 } // namespace gnash

Index: testsuite/MovieTester.h
===================================================================
RCS file: /sources/gnash/gnash/testsuite/MovieTester.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -b -r1.2 -r1.3
--- testsuite/MovieTester.h     16 Oct 2006 11:54:50 -0000      1.2
+++ testsuite/MovieTester.h     16 Oct 2006 14:21:53 -0000      1.3
@@ -88,6 +88,12 @@
        ///
        void movePointerTo(int x, int y);
 
+       /// Notify mouse button was pressed
+       void pressMouseButton();
+
+       /// Notify mouse button was depressed
+       void depressMouseButton();
+
 private:
 
        gnash::movie_root* _movie_root;




reply via email to

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