expand on selection test
@@ -258,33 +258,44 @@ class ApplicationTestCases(app.fake_curses_testing.FakeCursesTestCase):
self.cursorCheck(6, 18),
self.displayCheck(-2, 0, [u" ",]),
self.selectionCheck(4, 11, 0, 0, 0), CTRL_L,
+ self.selectionCheck(4, 11, 4, 0, 4),
self.displayCheck(-2, 0, [u"11 characters (1 lines) selected",]),
self.selectionCheck(4, 11, 4, 0, 4),
self.displayCheckStyle(0, 0, 1, len(u" ci "),
self.prg.color.get(u'logo', 0)), KEY_UP,
self.displayCheck(-2, 0, [u" ",]),
self.selectionCheck(3, 3, 4, 11, 0), CTRL_L,
+ self.selectionCheck(4, 0, 3, 0, 4),
self.displayCheck(-2, 0, [u"4 characters (2 lines) selected",]),
self.selectionCheck(4, 0, 3, 0, 4), CTRL_L,
- self.displayCheck(-2, 0, [u"15 characters (2 lines) selected",]),
self.selectionCheck(4, 11, 3, 0, 4),
+ self.displayCheck(-2, 0, [u"15 characters (2 lines) selected",]),
self.addMouseInfo(0, 2, 10, curses.BUTTON1_PRESSED),
curses.KEY_MOUSE,
+ self.selectionCheck(4, 11, 0, 3, 2),
self.displayCheck(-2, 0, [u"9 characters (4 lines) selected",]),
self.selectionCheck(4, 11, 0, 3, 2),
KEY_UP, KEY_UP, KEY_UP,
self.cursorCheck(3, 12),
self.displayCheck(-2, 0, [u" ",]),
- CTRL_L, CTRL_L, CTRL_L,
+ CTRL_L,
+ self.selectionCheck(2, 0, 1, 0, 4),
+ CTRL_L,
+ self.selectionCheck(3, 0, 1, 0, 4),
+ CTRL_L,
+ self.selectionCheck(4, 0, 1, 0, 4),
self.cursorCheck(6, 7),
self.displayCheck(-2, 0, [u"17 characters (4 lines) selected",]),
# Test cut then undo (regression test).
CTRL_X,
+ self.selectionCheck(1, 0, 1, 0, 0),
self.displayCheck(-2, 0, [u"copied 4 lines ",]),
CTRL_Z,
+ self.selectionCheck(1, 0, 4, 0, 4),
self.displayCheck(-2, 0, [u"17 characters (4 lines) selected",]),
# Test backspace.
CTRL_A,
+ self.selectionCheck(4, 11, 0, 0, 1),
self.displayCheck(-2, 0, [u"33 characters (5 lines) selected",]),
KEY_BACKSPACE1,
self.displayCheck(-2, 0, [u" ",]),
