gnash-commit
[Top][All Lists]
Advanced

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

[Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Drawing...


From: Sandro Santilli
Subject: [Gnash-commit] gnash ChangeLog testsuite/misc-ming.all/Drawing...
Date: Tue, 30 Oct 2007 15:32:06 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/10/30 15:32:06

Modified files:
        .              : ChangeLog 
        testsuite/misc-ming.all: DrawingApiTestRunner.cpp 

Log message:
                * testsuite/misc-ming.all/DrawingApiTestRunner.cpp:
                  Check rendering effects of the setMask call.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4743&r2=1.4744
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DrawingApiTestRunner.cpp?cvsroot=gnash&r1=1.24&r2=1.25

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4743
retrieving revision 1.4744
diff -u -b -r1.4743 -r1.4744
--- ChangeLog   30 Oct 2007 13:37:09 -0000      1.4743
+++ ChangeLog   30 Oct 2007 15:32:05 -0000      1.4744
@@ -1,6 +1,11 @@
 2007-10-30 Sandro Santilli <address@hidden>
 
        * testsuite/misc-ming.all/DrawingApiTestRunner.cpp:
+         Check rendering effects of the setMask call.
+
+2007-10-30 Sandro Santilli <address@hidden>
+
+       * testsuite/misc-ming.all/DrawingApiTestRunner.cpp:
          Check hitdetector bounds and reactions on mouse movement
        * gui/gui.{cpp,h}: Add support for mouse pointer movements using the
          keyboard arrow keys. Support is currently enabled but can be

Index: testsuite/misc-ming.all/DrawingApiTestRunner.cpp
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-ming.all/DrawingApiTestRunner.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -b -r1.24 -r1.25
--- testsuite/misc-ming.all/DrawingApiTestRunner.cpp    30 Oct 2007 13:37:09 
-0000      1.24
+++ testsuite/misc-ming.all/DrawingApiTestRunner.cpp    30 Oct 2007 15:32:06 
-0000      1.25
@@ -441,8 +441,29 @@
        check_pixel(c3b.x, c3b.y, 1, yellow, 2); 
 
        //--------------------------------------------------------------
-       // TODO: Check setMask effect (triggered onMouseDown)
+       // Check setMask effect (triggered onMouseDown)
        //--------------------------------------------------------------
 
+       tester.click(); // this should enable cursor shape masking drawing
+
+       tester.movePointerTo(50, 50); // out of any drawing
+       tester.advance();
+
+        // Inside bottom-left blue fill
+       check_pixel(60, 215, 2, white, 2); 
+       tester.movePointerTo(60, 215); tester.advance(); // move the mask over 
it...
+       check_pixel(60, 215, 2, blue, 2); 
+
+       // Inside violet fill
+       check_pixel(250, 112, 2, white, 2);
+       tester.movePointerTo(250, 112); tester.advance(); // move the mask over 
it
+       check_pixel(250, 112, 2, violet, 2);
+
+       // Inside red "thick" line
+       check_pixel(146, 146, 2, white, 2);
+       tester.movePointerTo(146, 146); tester.advance(); // move the mask over 
it
+       check_pixel(146, 146, 2, red, 2);
+
+
 }
 




reply via email to

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