summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2010-03-11 09:29:29 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2010-03-11 09:29:29 (GMT)
commit94533b37310c2295093ae8d6f8849f99fd783c92 (patch)
treec13b3502f8c832acb8c65fd5e0986269a00f9bce /tests/text.test
parent157a3c8c037e1b1b23d1520cafb55fc65e63820b (diff)
downloadtk-94533b37310c2295093ae8d6f8849f99fd783c92.zip
tk-94533b37310c2295093ae8d6f8849f99fd783c92.tar.gz
tk-94533b37310c2295093ae8d6f8849f99fd783c92.tar.bz2
* generic/tkText.c (DumpLine): [Bug 2968379]: When peers are about,
there can be unnamed marks present during a dump. Ignore them as they will just be for the peers' insert and current marks, which aren't very important.
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test11
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test
index 2d8d916..771a309 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.49.2.2 2009/10/22 21:41:20 dkf Exp $
+# RCS: @(#) $Id: text.test,v 1.49.2.3 2010/03/11 09:29:29 dkf Exp $
package require tcltest 2.1
eval tcltest::configure $argv
@@ -2936,6 +2936,15 @@ test text-22.26 {TextDumpCmd procedure, unicode characters} {
.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"
+test text-22.27 {TextDumpCmd procedure, peer present} -setup {
+ destroy .t
+} -body {
+ text .t
+ .t peer create .t.t
+ .t dump -all 1.0 end
+} -cleanup {
+ destroy .t
+} -result "mark insert 1.0 mark current 1.0 text {\n} 1.0"
set l [interp hidden]
deleteWindows