/[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.12 by benja, Sun Feb 23 14:45:14 2003 UTC revision 1.13 by benja, Sun Feb 23 16:50:27 2003 UTC
# Line 44  class Cmp(java.util.Comparator): Line 44  class Cmp(java.util.Comparator):
44    
45  view = gzz.loom.SimpleView(NodeView())  view = gzz.loom.SimpleView(NodeView())
46    
47    def testNullRotation():
48        r.addProperty(p, s)
49        r.addProperty(p, t)
50    
51        vs = getvs()
52        cursor = gzz.loom.Cursor(Cmp(), r, None)
53        view.render(vs, 0, cursor)
54    
55        cs_r, cs_s, cs_t, cs_u, cs_v = [vs.matcher.getCS(0, x)
56                                        for x in (r,s,t,u,v)]
57    
58        assert cs_u == cs_v == -1
59    
60        pr, ps, pt = [vs.coords.transformPoint(cs, 0, 0, None)
61                      for cs in [cs_r, cs_s, cs_t]]
62    
63        assert pr.y == pt.y < ps.y
64        assert ps.x == pt.x > pr.x
65        
66    
67  def testSimple():  def testSimple():
68      r.addProperty(p, s)      r.addProperty(p, s)
69      r.addProperty(p, t)      r.addProperty(p, t)

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

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