diff options
author | Havoc Pennington <hp@redhat.com> | 2001-10-04 00:22:13 +0000 |
---|---|---|
committer | Havoc Pennington <hp@src.gnome.org> | 2001-10-04 00:22:13 +0000 |
commit | 739ffc4934dae8eb1ed2e12eaa9f4772ac715f89 (patch) | |
tree | ff46498583ea76816fbf956652b8b05488ec4aa0 /tests | |
parent | 3c09d348d307f4dc61de16ef8163856ebc34022f (diff) | |
download | gtk+-739ffc4934dae8eb1ed2e12eaa9f4772ac715f89.tar.gz |
fix test case, it previously verified incorrect behavior
2001-10-03 Havoc Pennington <hp@redhat.com>
* tests/testtextbuffer.c (logical_motion_tests): fix test case,
it previously verified incorrect behavior
Fixes for #61565
* gtk/gtktextiter.c (gtk_text_iter_set_line): don't return lines
off the end
(_gtk_text_btree_get_iter_at_line_char): don't return lines off
the end
(_gtk_text_btree_get_iter_at_line_byte): don't return lines off
the end
(gtk_text_iter_forward_lines): if on the last line, move to end of
it
* gtk/gtktextbtree.c (_gtk_text_btree_last_could_contain_tag):
don't return a line off the end
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testtextbuffer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testtextbuffer.c b/tests/testtextbuffer.c index 175deb9857..0e29a0768f 100644 --- a/tests/testtextbuffer.c +++ b/tests/testtextbuffer.c @@ -1039,9 +1039,9 @@ logical_motion_tests (void) memset (expected, 0, sizeof (expected)); expected[0] = 24; - expected[1] = 22; + expected[1] = 21; expected[2] = 17; - expected[3] = 14; + expected[3] = 13; expected[4] = 9; expected[5] = 4; expected[6] = 0; |