diff options
author | vincentdarley <vincentdarley> | 2006-03-28 19:26:51 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2006-03-28 19:26:51 (GMT) |
commit | 33a8b76b5b3843e63e62ed11c06b89ea6ef42ede (patch) | |
tree | 8527c6fef01b1cdb3276e40ccf7e5ec88cee1280 /tests/text.test | |
parent | a8ce4b96284ab3e2477e17c015337d4828703be7 (diff) | |
download | tk-33a8b76b5b3843e63e62ed11c06b89ea6ef42ede.zip tk-33a8b76b5b3843e63e62ed11c06b89ea6ef42ede.tar.gz tk-33a8b76b5b3843e63e62ed11c06b89ea6ef42ede.tar.bz2 |
further fixes to $text dump -command
Diffstat (limited to 'tests/text.test')
-rw-r--r-- | tests/text.test | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/tests/text.test b/tests/text.test index 2cb3342..23b8388 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.42 2006/03/26 17:52:40 vincentdarley Exp $ +# RCS: @(#) $Id: text.test,v 1.43 2006/03/28 19:26:52 vincentdarley Exp $ package require tcltest 2.1 eval tcltest::configure $argv @@ -3725,6 +3725,32 @@ test text-33.1 {widget dump -command alters tags} { set result "ok" } {ok} +test text-33.2 {widget dump -command makes massive changes} { + .t delete 1.0 end + .t insert end "abc\n" a "---" {} "def" b " \n" {} "ghi\n" c + .t tag configure b -background red + + proc Dumpy {key value index} { + #puts "KK: $key, $value" + .t delete 1.0 end + } + .t dump -all -command Dumpy 1.0 end + set result "ok" +} {ok} + +test text-33.3 {widget dump -command destroys widget} { + .t delete 1.0 end + .t insert end "abc\n" a "---" {} "def" b " \n" {} "ghi\n" c + .t tag configure b -background red + + proc Dumpy {key value index} { + #puts "KK: $key, $value" + destroy .t + } + .t dump -all -command Dumpy 1.0 end + set result "ok" +} {ok} + deleteWindows option clear |