/[gzz]/gzz/test/gzz/view/cellvobfactory.test
ViewVC logotype

Diff of /gzz/test/gzz/view/cellvobfactory.test

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tjl, Tue Oct 15 15:04:57 2002 UTC revision 1.2 by tjl, Tue Oct 15 17:42:19 2002 UTC
# Line 36  class VC(ViewContext): Line 36  class VC(ViewContext):
36      def getCursorOffset(self, *args):      def getCursorOffset(self, *args):
37          return 0          return 0
38    
39  def testSingle():  bgc = (0, 0, 255)
40    
41    def checkbox(x, y, w, h, color):
42        # Check that edges are background-colored
43        checkAvgColor(x-2, y-2, w+20, 1, bgc)
44        checkAvgColor(x-2, y-2, 1, h+20, bgc)
45        checkAvgColor(x-2, y+h+1, w+20, 1, bgc)
46        checkAvgColor(x+w+1, y-2, 1, h+20, bgc)
47    
48        # Check that center is of given color
49        checkAvgColor(x+3, y+3, w-6, h-6, color)
50    
51        # Finally, should check edge color!
52    
53    def testSingle__failing_solidbgvob():
54      vs = getvs()      vs = getvs()
55      vs.map.put(SolidBgVob(Color.blue))      vs.map.put(SolidBgVob(Color.blue))
56    
# Line 49  def testSingle(): Line 63  def testSingle():
63    
64      render(vs)      render(vs)
65    
66        checkbox(100, 100, 200, 50, (255,255,255))
67    
68  # : vim: set syntax=python :  # : vim: set syntax=python :

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26