summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2023-03-21 20:27:22 (GMT)
committerfvogel <fvogelnew1@free.fr>2023-03-21 20:27:22 (GMT)
commit05c5d0fe0705587ef8e1c9bf338d545a216c366e (patch)
tree3ff6a813c135e90e717563c2cf7286a18098be1a /tests
parentb45b889e42c564146e30421a45430524ad4901e3 (diff)
downloadtk-05c5d0fe0705587ef8e1c9bf338d545a216c366e.zip
tk-05c5d0fe0705587ef8e1c9bf338d545a216c366e.tar.gz
tk-05c5d0fe0705587ef8e1c9bf338d545a216c366e.tar.bz2
Fix winMenu tests impacted by the tip.
Diffstat (limited to 'tests')
-rw-r--r--tests/winMenu.test36
1 files changed, 18 insertions, 18 deletions
diff --git a/tests/winMenu.test b/tests/winMenu.test
index 3b7dbec..21768ef 100644
--- a/tests/winMenu.test
+++ b/tests/winMenu.test
@@ -93,91 +93,91 @@ test winMenu-6.2 {GetEntryText} -constraints {
menu .m1
image create test image1
list [catch {.m1 add command -image image1} msg] $msg [destroy .m1] [image delete image1]
-} -result {0 {} {} {}}
+} -result {0 e001 {} {}}
test winMenu-6.3 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -bitmap questhead} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.4 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.5 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "foo"} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.6 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "This string has one & in it"} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.7 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "The & should be underlined." -underline 4} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.8 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "The * should be underlined." -underline 4} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.9 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "foo" -accel "bar"} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.10 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "This string has one & in it" -accel "bar"} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.11 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "The & should be underlined." -underline 4 -accel "bar"} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.12 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "The * should be underlined." -underline 4 -accel "bar"} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.13 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "foo" -accel "&bar"} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.14 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "This string has one & in it" -accel "&bar"} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.15 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "The & should be underlined." -underline 4 -accel "&bar"} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-6.16 {GetEntryText} -constraints win -setup {
destroy .m1
} -body {
menu .m1
list [catch {.m1 add command -label "The * should be underlined." -underline 4 -accel "&bar"} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-7.1 {ReconfigureWindowsMenu - system menu item removal} -constraints {
win
@@ -427,7 +427,7 @@ test winMenu-9.1 {TkpMenuNewEntry} -constraints win -setup {
} -body {
menu .m1
list [catch {.m1 add command} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e001 {}}
test winMenu-10.1 {TkwinMenuProc} -constraints {
@@ -859,7 +859,7 @@ test winMenu-28.1 {TkpConfigureMenuEntry - update pending} -constraints {
menu .m1 -tearoff 0
.m1 add command -label Hello
list [catch {.m1 add command -label Two} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e002 {}}
test winMenu-28.2 {TkpConfigureMenuEntry - update not pending} -constraints {
win
} -setup {
@@ -869,7 +869,7 @@ test winMenu-28.2 {TkpConfigureMenuEntry - update not pending} -constraints {
.m1 add command -label One
update idletasks
list [catch {.m1 add command -label Two} msg] $msg [destroy .m1]
-} -result {0 {} {}}
+} -result {0 e002 {}}
test winMenu-29.1 {TkpDrawMenuEntry - gc for active and not strict motif} -constraints {