diff options
author | ericm <ericm> | 2000-02-03 17:29:57 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-02-03 17:29:57 (GMT) |
commit | 32c58211007ce985f1da733cc7426626692dedf9 (patch) | |
tree | d35b33d981f526a9c48267ba77e17467e04d0736 /tests/text.test | |
parent | 3064162d9d6b976b8f052635cab3bf5def643b4b (diff) | |
download | tk-32c58211007ce985f1da733cc7426626692dedf9.zip tk-32c58211007ce985f1da733cc7426626692dedf9.tar.gz tk-32c58211007ce985f1da733cc7426626692dedf9.tar.bz2 |
* tests/text.test:
* generic/tkText.c (DumpLine/DumpSegment): Changed DumpSegment to
take a TkTextIndex instead of two integer offsets, so that it
could use TkTextPrintIndex to format the offsets into an index,
which makes it UTF smart (bug #2582).
Diffstat (limited to 'tests/text.test')
-rw-r--r-- | tests/text.test | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test index d7b4210..651e7d8 100644 --- a/tests/text.test +++ b/tests/text.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: text.test,v 1.9 2000/01/21 17:25:43 ericm Exp $ +# RCS: @(#) $Id: text.test,v 1.10 2000/02/03 17:29:58 ericm Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -1274,6 +1274,20 @@ test text-22.24 {TextDumpCmd procedure, command script} { set x } {mark 1.0 current mark 1.0 insert mark 2.4 m} catch {unset x} +test text-22.25 {TextDumpCmd procedure, unicode characters} { + catch {destroy .t} + text .t + .t delete 1.0 end + .t insert 1.0 \xb1\xb1\xb1 + .t dump -all 1.0 2.0 +} "text \xb1\xb1\xb1 1.0 mark insert 1.3 mark current 1.3 text {\n} 1.3" +test text-22.26 {TextDumpCmd procedure, unicode characters} { + catch {destroy .t} + text .t + .t delete 1.0 end + .t insert 1.0 abc\xb1\xb1\xb1 + .t dump -all 1.0 2.0 +} "text abc\xb1\xb1\xb1 1.0 mark insert 1.6 mark current 1.6 text {\n} 1.6" set l [interp hidden] eval destroy [winfo children .] |