/[gzz]/gzz/test/gzz/view/buoy/buoysys.test
ViewVC logotype

Diff of /gzz/test/gzz/view/buoy/buoysys.test

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

revision 1.12 by tjl, Tue Feb 4 21:16:31 2003 UTC revision 1.13 by tjl, Wed Feb 5 14:09:03 2003 UTC
# Line 32  def testVanishingScroll(): Line 32  def testVanishingScroll():
32      """Test that buoying between vanishing and scrollblock works.      """Test that buoying between vanishing and scrollblock works.
33      Doesn't run yet but is good for noticing which pieces are missing.      Doesn't run yet but is good for noticing which pieces are missing.
34    
     fail: *  
35      """      """
36    
37      # Create a space      # Create a space
# Line 51  def testVanishingScroll(): Line 50  def testVanishingScroll():
50    
51      # Create the buoy view elements      # Create the buoy view elements
52      scrollblockLinker = ScrollblockCellLinker(space)      scrollblockLinker = ScrollblockCellLinker(space)
53      scrollblockLinker.pageSpanNodeType = pagespanNodes.PageSpanNodeType(scrollblockLinker)      scrollblockLinker.transclusionPageSpanNodeType = pagespanNodes.WholePageSpanNodeType(scrollblockLinker)
54      adaptor = BuoyAdaptor()      adaptor = BuoyAdaptor()
55      adaptor.cellNodes = [zzNodes.VanishingNodeType()]      adaptor.cellNodes = [zzNodes.VanishingNodeType()]
56      adaptor.cellLinkers = [scrollblockLinker]      adaptor.cellLinkers = [scrollblockLinker]
# Line 71  def testVanishingScroll(): Line 70  def testVanishingScroll():
70      # for putting a buoy with the scrollblock in it.      # for putting a buoy with the scrollblock in it.
71      failUnlessEqual(testbll.calls, 1)      failUnlessEqual(testbll.calls, 1)
72    
73      failUnlessEqual(testbll.args[2], scrollblockLinker.pageSpanNodeType)      failUnlessEqual(testbll.args[2], scrollblockLinker.transclusionPageSpanNodeType)
74      failUnlessEqual(testbll.args[4], span)      failUnlessEqual(testbll.args[4], span)
75    
76      # Next, the big invariant test:      # Next, the big invariant test:

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