/[fenfire]/fenfire/org/fenfire/loom/WheelView.test
ViewVC logotype

Diff of /fenfire/org/fenfire/loom/WheelView.test

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

revision 1.5 by benja, Tue Mar 4 12:28:39 2003 UTC revision 1.6 by benja, Tue Mar 4 15:48:15 2003 UTC
# Line 88  def getZ(vs, cs): Line 88  def getZ(vs, cs):
88      vs.coords.transformPoints3(cs, [0.0, 0.0, 0.0], tmp)      vs.coords.transformPoints3(cs, [0.0, 0.0, 0.0], tmp)
89      return (tmp[2])      return (tmp[2])
90    
91    def isActivated(scene, cs):
92        pt = scene.coords.transformPoint(cs, 0, 0, None)
93        return scene.coords.getCSAt(0, pt.x, pt.y, None) == cs
94        
95    
96  def testWheel():  def testWheel():
97      r.addProperty(p, s)      r.addProperty(p, s)
98      r.addProperty(p, t)      r.addProperty(p, t)
# Line 138  def testWheel(): Line 143  def testWheel():
143      assert angle(pr, pw) == math.pi      assert angle(pr, pw) == math.pi
144      assert angle(pr, pt) == 2*math.pi - angle(pr, pv)      assert angle(pr, pt) == 2*math.pi - angle(pr, pv)
145    
146        # Test that all node coordinate systems are activated
147        # (clickable).
148        for x in (cs_r, cs_s, cs_t, cs_u, cs_v, cs_w):
149            assert isActivated(vs, x)        
150    
151      # Test that WheelView calls its NodeView      # Test that WheelView calls its NodeView
152      # with all the correct parameters.      # with all the correct parameters.
153    

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

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