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

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

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

revision 1.9 by Vegai, Wed Feb 26 16:55:37 2003 UTC revision 1.10 by Vegai, Wed Feb 26 17:13:07 2003 UTC
# Line 223  def testRotateMove(): Line 223  def testRotateMove():
223      c.set(n[0], 1, n[1])      c.set(n[0], 1, n[1])
224      c.move(-1)      c.move(-1)
225      assert c.focus == n[0] and c.getRotationNode(1) == n[1]      assert c.focus == n[0] and c.getRotationNode(1) == n[1]
226    
227    
228    def testMoveOnLiteral():
229        """
230        Trying to move onto a literal should do nothing.
231        """
232        
233        n[8].addProperty(p, "foo"); # literal
234    
235        c.set(n[8])
236        assert c.focus == n[8] and c.rotation == 0
237    
238        c.move(1)
239        assert c.focus == n[8] and c.rotation == 0

Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

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