diff-edit: Allow negative scroll positions in portals
This commit is contained in:
parent
f9c5399ab9
commit
244dc5897d
2 changed files with 17 additions and 4 deletions
|
|
@ -38,6 +38,13 @@ class WidgetTests(unittest.TestCase):
|
|||
self.assert_string(portal.appearance_for((5, 1)), "oobar")
|
||||
portal.position = (0, 10)
|
||||
self.assert_string(portal.appearance_for((1, 1)), " ")
|
||||
portal.position = (1, 0)
|
||||
self.assert_string(portal.appearance_for((6, 2)), "oobar \n ")
|
||||
portal.position = (-1, -1)
|
||||
self.assert_string(portal.appearance_for((2, 2)), " \n f")
|
||||
self.assert_string(portal.appearance_for((8, 3)), " \n foobar \n ")
|
||||
portal.position = (5, 0)
|
||||
self.assert_string(portal.appearance_for((2, 1)), "r ")
|
||||
|
||||
def test_border_widget(self):
|
||||
contents = fill3.Filler(self.TEXT_A)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue