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, 06 Nov 2007 20:18:19 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Sandro Santilli <strk>  07/11/06 20:18:19

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

Log message:
                * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: pixel 
checking
                  for some invalid drawing (missing the nested squares to 
complete).

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/ChangeLog?cvsroot=gnash&r1=1.4786&r2=1.4787
http://cvs.savannah.gnu.org/viewcvs/gnash/testsuite/misc-ming.all/DrawingApiTestRunner.cpp?cvsroot=gnash&r1=1.28&r2=1.29

Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/gnash/gnash/ChangeLog,v
retrieving revision 1.4786
retrieving revision 1.4787
diff -u -b -r1.4786 -r1.4787
--- ChangeLog   6 Nov 2007 18:49:29 -0000       1.4786
+++ ChangeLog   6 Nov 2007 20:18:18 -0000       1.4787
@@ -1,5 +1,7 @@
 2007-11-06 Sandro Santilli <address@hidden>
 
+       * testsuite/misc-ming.all/DrawingApiTestRunner.cpp: pixel checking
+         for some invalid drawing (missing the nested squares to complete).
        * testsuite/misc-ming.all/DrawingApiTest.as: 3 more nested squares:
          One with different edge directions for outer and inner squares
          (which doesn't make a difference), and one with a new beginFill

Index: testsuite/misc-ming.all/DrawingApiTestRunner.cpp
===================================================================
RCS file: 
/sources/gnash/gnash/testsuite/misc-ming.all/DrawingApiTestRunner.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -b -r1.28 -r1.29
--- testsuite/misc-ming.all/DrawingApiTestRunner.cpp    6 Nov 2007 12:38:57 
-0000       1.28
+++ testsuite/misc-ming.all/DrawingApiTestRunner.cpp    6 Nov 2007 20:18:19 
-0000       1.29
@@ -116,6 +116,9 @@
 
        // Inside cyan clockwise fill
        tester.movePointerTo(190, 112);
+       // this fails since Udo's rewrite of shape_character_def::point_test
+       // won't turn it into an 'expected' change as reverting the point_test 
+       // would fix it.
        check(tester.isMouseOverMouseEntity());
        check_pixel(190, 112, 2, cyan, 1);
 
@@ -499,11 +502,81 @@
        tester.advance(); // commit 
        check_pixel(146, 146, 2, red, 2);
 
+       tester.click(); // disable the mask
+       tester.advance(); // commit
+
 
        //--------------------------------------------------------------
-       // TODO: go to drawing #2 (hit the '2' ascii key)
+       // Go to drawing #2 (hit the '2' ascii key)
        //       and test rendering of those invalid shapes.
        //--------------------------------------------------------------
 
+       tester.pressKey(gnash::key::_2); // go to second drawing
+       tester.advance(); // commit
+
+       //--------------------------------------------------------------
+       // The double "EL"s case
+       //--------------------------------------------------------------
+
+       // In the right green 'el' shape (not explicitly closed fill)
+       xcheck_pixel(80, 170, 2, green, 2);
+
+       // Outside the right green 'el' shape
+       // (but close to the auto-closing edge)
+       check_pixel(25, 148, 2, white, 2);
+
+       // In the left green horizontally flipped 'el' shape
+       // (not explicitly closed fill)
+       xcheck_pixel(30, 170, 2, green, 2);
+
+       // Outside the left green 'el' shape
+       // (but close to the auto-closing edge)
+       check_pixel(85, 148, 2, white, 2);
+
+       // Between the two 'el' shapes
+       xcheck_pixel(56, 170, 2, white, 2);
+
+       //--------------------------------------------------------------
+       // The red crossing edges case 
+       //--------------------------------------------------------------
+
+       // In the left niche
+       check_pixel(46, 60, 2, white, 2);
+
+       // In the right niche
+       check_pixel(74, 60, 2, white, 2);
+
+       // In the upper niche
+       check_pixel(60, 48, 2, red, 2);
+
+       // In the lower niche
+       check_pixel(60, 72, 2, red, 2);
+
+       //--------------------------------------------------------------
+       // The four-in-a-row case (there should be no visible fill)
+       //--------------------------------------------------------------
+
+       // upper-left
+       check_pixel(136, 35, 2, white, 2);
+       // center-left
+       check_pixel(136, 56, 2, white, 2);
+       // lower-left
+       check_pixel(136, 75, 2, white, 2);
+       // lower-center
+       xcheck_pixel(156, 75, 2, white, 2);
+       // lower-right
+       check_pixel(175, 75, 2, white, 2);
+       // center-right
+       check_pixel(175, 56, 2, white, 2);
+       // upper-right
+       check_pixel(175, 35, 2, white, 2);
+       // upper-center
+       xcheck_pixel(156, 35, 2, white, 2);
+       // center
+       xcheck_pixel(156, 57, 2, white, 2);
+
+       //--------------------------------------------------------------
+       // The nested squares case (TODO)
+       //--------------------------------------------------------------
 }
 




reply via email to

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