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 |
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] |
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: |