32 |
|
|
33 |
def testABCD(): |
def testABCD(): |
34 |
"""Test various things about span handling. |
"""Test various things about span handling. |
|
|
|
|
fail: * |
|
35 |
""" |
""" |
36 |
s1, s2 = scrollblock1, scrollblock2 |
s1, s2 = scrollblock1, scrollblock2 |
37 |
sp1_all = s1.getCurrent() |
sp1_all = s1.getCurrent() |
40 |
failUnlessEqual(sp1_0.getText(), "b") |
failUnlessEqual(sp1_0.getText(), "b") |
41 |
failUnlessEqual(sp1_all.subSpan(1,2), sp1_0) |
failUnlessEqual(sp1_all.subSpan(1,2), sp1_0) |
42 |
|
|
43 |
|
|
44 |
|
def testABCD_transient(): |
45 |
|
"""Test various things about span handling for transients. |
46 |
|
""" |
47 |
|
appendable1.append("abcd") |
48 |
|
appendable2.append("a") |
49 |
|
appendable2.append("bc") |
50 |
|
appendable2.append("d") |
51 |
|
scrollblock1 = appendable1 |
52 |
|
scrollblock2 = appendable2 |
53 |
|
testABCD() |