/[gzz]/gzz/lava/test/gzz/loom/SimpleView.test
ViewVC logotype

Diff of /gzz/lava/test/gzz/loom/SimpleView.test

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

revision 1.15 by benja, Sun Feb 23 23:44:56 2003 UTC revision 1.16 by Vegai, Wed Feb 26 16:55:37 2003 UTC
# Line 50  def testNullRotation(): Line 50  def testNullRotation():
50      r.addProperty(p, t)      r.addProperty(p, t)
51    
52      vs = getvs()      vs = getvs()
53      cursor = gzz.loom.Cursor(Cmp(), r, 0, None)      cursor = gzz.loom.Cursor(Cmp())
54        cursor.set(r)
55      view.render(vs, 0, cursor)      view.render(vs, 0, cursor)
56    
57      cs_r, cs_s, cs_t, cs_u, cs_v = [vs.matcher.getCS(0, x)      cs_r, cs_s, cs_t, cs_u, cs_v = [vs.matcher.getCS(0, x)
# Line 75  def testSimple(): Line 76  def testSimple():
76    
77      vs = getvs()      vs = getvs()
78      cursor = gzz.loom.Cursor(Cmp(), r, 1, s)      cursor = gzz.loom.Cursor(Cmp(), r, 1, s)
79        assert cursor.rotation == 0
80      view.render(vs, 0, cursor)      view.render(vs, 0, cursor)
81    
82      cs_r, cs_s, cs_t, cs_u, cs_v, cs_w = \      cs_r, cs_s, cs_t, cs_u, cs_v, cs_w = \
# Line 96  def testSimple(): Line 98  def testSimple():
98      # s,t,u,v should be same size and on a single vertical line      # s,t,u,v should be same size and on a single vertical line
99      assert ps.x == pt.x == pu.x == pv.x > pr.x > pw.x      assert ps.x == pt.x == pu.x == pv.x > pr.x > pw.x
100    
101      # s and w should be approx. the same height as r,      # s and w should be the same height as r,
102      # while t is above and v,u are below      # while t is above and v,u are below
103      assert pt.y == pw.y < pr.y == ps.y < pv.y < pu.y      assert pt.y < pw.y == pr.y == ps.y < pv.y < pu.y
104    
105      # distances on both sides should be equal      # distances on both sides should be equal
106      # this works only if all nodes are same size... XXX      # this works only if all nodes are same size... XXX

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

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