summaryrefslogtreecommitdiffstats
path: root/tests/text.test
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-10-04 13:55:14 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-10-04 13:55:14 (GMT)
commit69babf2af132856cc0221306450c09b368f89e9c (patch)
tree2c7eb6754c364df033025c9294a945c01fd96196 /tests/text.test
parentd18323e55843fd090168c487519968d92c6ebe37 (diff)
downloadtk-69babf2af132856cc0221306450c09b368f89e9c.zip
tk-69babf2af132856cc0221306450c09b368f89e9c.tar.gz
tk-69babf2af132856cc0221306450c09b368f89e9c.tar.bz2
Fixed bug [1669632fff] case (vi) - <<Cut>> 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 a85edfa..2e5e495 100644
--- a/tests/text.test
+++ b/tests/text.test
@@ -3274,6 +3274,26 @@ test text-25.22 {patch 1669632 (v) - <<Clear>> is atomic} -setup {
} -cleanup {
destroy .top.t .top
} -result "This A an example text"
+ test text-25.23 {patch 1669632 (v) - <<Cut>> 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 <<Cut>>
+ event generate .top.t <Delete>
+ event generate .top.t <<Undo>>
+ .top.t get 1.0 "1.0 lineend"
+} -cleanup {
+ destroy .top.t .top
+} -result "This A an example text"
test text-26.1 {bug fix - 624372, ControlUtfProc long lines} {
destroy .t