/[libvob]/libvob/test/vob/vobs/textvob.test
ViewVC logotype

Diff of /libvob/test/vob/vobs/textvob.test

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

revision 1.4 by humppake, Sun Aug 17 21:00:15 2003 UTC revision 1.5 by mudyc, Mon Aug 18 10:34:37 2003 UTC
# Line 76  def testWH(): Line 76  def testWH():
76          """The bottom side."""          """The bottom side."""
77          checkAvgColor(100, 100+text_height+text_depth+10, text_width, 10, (255, 0, 0), delta=1)          checkAvgColor(100, 100+text_height+text_depth+10, text_width, 10, (255, 0, 0), delta=1)
78    
79    
80    def testEmpty():
81            text_scale = 1
82            vs = getvs()
83            size = vs.getSize()
84            vs.map.put(vob.vobs.SolidBackdropVob(Color.red))
85            textvob = vob.vobs.TextVob(sty1, None)
86    
87            text_width = int(textvob.getWidth(text_scale))
88            text_height = int(textvob.getHeight(text_scale))
89            text_depth = int(textvob.getDepth(text_scale))
90    
91            cs = vs.orthoBoxCS(0, "window",  0, 100, 100, 1, 1, size.width, size.height)
92            cs_text = vs.orthoCS(cs, "text", 0, 0, 0, text_height + text_depth, text_height + text_depth)
93            vs.map.put(textvob, cs_text)
94            render(vs)
95    
96    
97  # : vim: set syntax=python :  # : vim: set syntax=python :

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

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