summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorfvogelnew1@free.fr <fvogel>2015-10-04 09:04:42 (GMT)
committerfvogelnew1@free.fr <fvogel>2015-10-04 09:04:42 (GMT)
commit23f66f1ac10b15ef5aa8982db0691c0fed84c2d9 (patch)
tree3f6de39fa985cc913d002206c7040312f1147baa /tests/text.test
parent8b309a25a7526b68d72f3edba33c1213e39413b1 (diff)
downloadtk-23f66f1ac10b15ef5aa8982db0691c0fed84c2d9.zip
tk-23f66f1ac10b15ef5aa8982db0691c0fed84c2d9.tar.gz
tk-23f66f1ac10b15ef5aa8982db0691c0fed84c2d9.tar.bz2
Fixed bug [1669632fff] case (v) - <<Clear>> is atomic
Diffstat (limited to 'tests/text.test')
-rw-r--r--tests/text.test20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/text.test b/tests/text.test
index 4eeb8e4..023aedf 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -3254,6 +3254,26 @@ test text-25.21 {patch 1669632 (vii) - <<Undo>> shall not remove separators} -se
} -cleanup {
destroy .t
} -result "This WORLD is an example text"
+test text-25.22 {patch 1669632 (v) - <<Clear>> is atomic} -setup {
+ destroy .t
+} -body {
+ toplevel .top
+ pack [text .top.t -undo 1]
+ .top.t insert end "This is an example text"
+ .top.t edit reset
+ .top.t mark set insert 1.5
+ .top.t insert 1.5 "A"
+ update
+ focus -force .top.t
+ event generate .top.t <Delete>
+ event generate .top.t <Shift-Right>
+ event generate .top.t <<Clear>>
+ event generate .top.t <Delete>
+ event generate .top.t <<Undo>>
+ .top.t get 1.0 "1.0 lineend"
+} -cleanup {
+ destroy .t
+} -result "This A an example text"
test text-26.1 {bug fix - 624372, ControlUtfProc long lines} {
destroy .t