| Ticket UUID: | c8c52b9d6a888829f930c5704a4f103a93922073 | |||
| Title: | OS X - Lots of menu.test tests fail (items are off by one) | |||
| Type: | Bug | Version: | core-8-6-branch | |
| Submitter: | fvogel | Created on: | 2017-11-04 08:22:15 | |
| Subsystem: | 86. Test Tools | Assigned To: | fvogel | |
| Priority: | 5 Medium | Severity: | Minor | |
| Status: | Closed | Last Modified: | 2017-11-04 12:23:08 | |
| Resolution: | Fixed | Closed By: | fvogel | |
| Closed on: | 2017-11-04 12:23:08 | |||
| Description: |
On OS X only, lots of menu.test tests fail because items are off by one. This is because on OS X (and not on other platforms), the -tearoff option is false by default. This was done in 2004 by [2cb92ba546de97e1]. TIP #161 proposes to set the default for -tearoff to false for all platforms, and I have implemented this proposal in branch branch tip-161. However this targets Tcl/Tk 9 because of backwards compatibility concerns. In core-8-6-branch and trunk it is however possible to address ths problem of failing tests on OS X by forcing the -tearoff option to true in the failing tests. Indeed, on OS X the -tearoff option is ignored in the sense that it does not graphically draw a tearoff entry in a menu, but otherwise everything is the same as on other platforms, in particular index 0 still denotes the tearoff entry (which is simply not displayed on OS X). | |||
| User Comments: |
fvogel added on 2017-11-04 12:23:08:
Merged to core-8-6-branch and trunk. fvogel added on 2017-11-04 12:18:14: [2200f2f8] deals with the last failing test menu-3.66 from menu.test. All tests from menu.test now do pass on all three platforms (Win, Linux, OS X). fvogel added on 2017-11-04 08:42:34: With [6f34c1ef] 84 previously failing tests do now pass. The only one still failing (in menu.test) is menu-3.66:
==== menu-3.66 MenuWidgetCmd procedure, "yposition" option FAILED
==== Contents of test case:
menu .m1 -tearoff 1
.m1 yposition 1
---- Result was:
0
---- Result should have been (exact matching):
1
==== menu-3.66 FAILED
fvogel added on 2017-11-04 08:32:10: When running:
make -C ./macosx test TESTFLAGS="-file menu.test"
the following is the current output in core-8-6-branch:
Only running test files that match: menu.test
Tests began at Sat Nov 04 09:27:53 CET 2017
menu.test
==== menu-2.31 entry configuration options 0 -activebackground #012345 tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -activebackground #012345
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.31 FAILED
==== menu-2.33 entry configuration options 2 -activebackground #012345 cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -activebackground #012345
lindex [.m1 entryconfigure 2 -activebackground] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-activebackground"
while executing
".m1 entryconfigure 2 -activebackground #012345"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -activebackground
==== menu-2.33 FAILED
==== menu-2.34 entry configuration options 3 -activebackground #012345 separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -activebackground #012345
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.34 FAILED
==== menu-2.37 entry configuration options 0 -activebackground non-existent tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -activebackground non-existent
---- Result was:
unknown color name "non-existent"
---- Result should have been (exact matching):
unknown option "-activebackground"
==== menu-2.37 FAILED
==== menu-2.39 entry configuration options 2 -activebackground non-existent cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -activebackground non-existent
---- Result was:
unknown option "-activebackground"
---- Result should have been (exact matching):
unknown color name "non-existent"
==== menu-2.39 FAILED
==== menu-2.40 entry configuration options 3 -activebackground non-existent separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -activebackground non-existent
---- Result was:
unknown color name "non-existent"
---- Result should have been (exact matching):
unknown option "-activebackground"
==== menu-2.40 FAILED
==== menu-2.43 entry configuration options 0 -activeforeground #ff0000 tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -activeforeground #ff0000
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.43 FAILED
==== menu-2.45 entry configuration options 2 -activeforeground #ff0000 cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -activeforeground #ff0000
lindex [.m1 entryconfigure 2 -activeforeground] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-activeforeground"
while executing
".m1 entryconfigure 2 -activeforeground #ff0000"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -activeforeground
==== menu-2.45 FAILED
==== menu-2.46 entry configuration options 3 -activeforeground #ff0000 separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -activeforeground #ff0000
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.46 FAILED
==== menu-2.49 entry configuration options 0 -activeforeground non-existent tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -activeforeground non-existent
---- Result was:
unknown color name "non-existent"
---- Result should have been (exact matching):
unknown option "-activeforeground"
==== menu-2.49 FAILED
==== menu-2.51 entry configuration options 2 -activeforeground non-existent cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -activeforeground non-existent
---- Result was:
unknown option "-activeforeground"
---- Result should have been (exact matching):
unknown color name "non-existent"
==== menu-2.51 FAILED
==== menu-2.52 entry configuration options 3 -activeforeground non-existent separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -activeforeground non-existent
---- Result was:
unknown color name "non-existent"
---- Result should have been (exact matching):
unknown option "-activeforeground"
==== menu-2.52 FAILED
==== menu-2.55 entry configuration options 0 -accelerator Ctrl+S tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -accelerator Ctrl+S
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.55 FAILED
==== menu-2.57 entry configuration options 2 -accelerator Ctrl+S cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -accelerator Ctrl+S
lindex [.m1 entryconfigure 2 -accelerator] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-accelerator"
while executing
".m1 entryconfigure 2 -accelerator Ctrl+S"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -accelerator
==== menu-2.57 FAILED
==== menu-2.58 entry configuration options 3 -accelerator Ctrl+S separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -accelerator Ctrl+S
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.58 FAILED
==== menu-2.73 entry configuration options 0 -bitmap questhead tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -bitmap questhead
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.73 FAILED
==== menu-2.75 entry configuration options 2 -bitmap questhead cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -bitmap questhead
lindex [.m1 entryconfigure 2 -bitmap] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-bitmap"
while executing
".m1 entryconfigure 2 -bitmap questhead"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -bitmap
==== menu-2.75 FAILED
==== menu-2.76 entry configuration options 3 -bitmap questhead separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -bitmap questhead
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.76 FAILED
2017-11-04 09:27:54.078 tktest[8602:3347740] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no scheme
==== menu-2.79 entry configuration options 0 -bitmap badValue tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -bitmap badValue
---- Result was:
bitmap "badValue" not defined
---- Result should have been (exact matching):
unknown option "-bitmap"
==== menu-2.79 FAILED
2017-11-04 09:27:54.083 tktest[8602:3347740] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no scheme
==== menu-2.81 entry configuration options 2 -bitmap badValue cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -bitmap badValue
---- Result was:
unknown option "-bitmap"
---- Result should have been (exact matching):
bitmap "badValue" not defined
==== menu-2.81 FAILED
2017-11-04 09:27:54.084 tktest[8602:3347740] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no scheme
==== menu-2.82 entry configuration options 3 -bitmap badValue separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -bitmap badValue
---- Result was:
bitmap "badValue" not defined
---- Result should have been (exact matching):
unknown option "-bitmap"
==== menu-2.82 FAILED
2017-11-04 09:27:54.085 tktest[8602:3347740] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no scheme
2017-11-04 09:27:54.086 tktest[8602:3347740] CFURLCopyResourcePropertyForKey failed because it was passed an URL which has no scheme
==== menu-2.85 entry configuration options 0 -columnbreak 1 tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -columnbreak 1
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.85 FAILED
==== menu-2.87 entry configuration options 2 -columnbreak 1 cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -columnbreak 1
lindex [.m1 entryconfigure 2 -columnbreak] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-columnbreak"
while executing
".m1 entryconfigure 2 -columnbreak 1"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -columnbreak
==== menu-2.87 FAILED
==== menu-2.88 entry configuration options 3 -columnbreak 1 separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -columnbreak 1
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.88 FAILED
==== menu-2.91 entry configuration options 0 -command beep tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -command beep
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.91 FAILED
==== menu-2.93 entry configuration options 2 -command beep cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -command beep
lindex [.m1 entryconfigure 2 -command] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-command"
while executing
".m1 entryconfigure 2 -command beep"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -command
==== menu-2.93 FAILED
==== menu-2.94 entry configuration options 3 -command beep separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -command beep
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.94 FAILED
==== menu-2.97 entry configuration options 0 -font -Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-* tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -font -Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-*
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.97 FAILED
==== menu-2.99 entry configuration options 2 -font -Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-* cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -font -Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-*
lindex [.m1 entryconfigure 2 -font] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-font"
while executing
".m1 entryconfigure 2 -font -Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-*"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -font
==== menu-2.99 FAILED
==== menu-2.100 entry configuration options 3 -font -Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-* separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -font -Adobe-Helvetica-Medium-R-Normal--*-120-*-*-*-*-*-*
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.100 FAILED
==== menu-2.103 entry configuration options 0 -font {kill rock stars} tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -font {kill rock stars}
---- Result was:
expected integer but got "rock"
---- Result should have been (exact matching):
unknown option "-font"
==== menu-2.103 FAILED
==== menu-2.105 entry configuration options 2 -font {kill rock stars} cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -font {kill rock stars}
---- Result was:
unknown option "-font"
---- Result should have been (exact matching):
expected integer but got "rock"
==== menu-2.105 FAILED
==== menu-2.106 entry configuration options 3 -font {kill rock stars} separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -font {kill rock stars}
---- Result was:
expected integer but got "rock"
---- Result should have been (exact matching):
unknown option "-font"
==== menu-2.106 FAILED
==== menu-2.109 entry configuration options 0 -foreground #110022 tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -foreground #110022
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.109 FAILED
==== menu-2.111 entry configuration options 2 -foreground #110022 cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -foreground #110022
lindex [.m1 entryconfigure 2 -foreground] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-foreground"
while executing
".m1 entryconfigure 2 -foreground #110022"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -foreground
==== menu-2.111 FAILED
==== menu-2.112 entry configuration options 3 -foreground #110022 separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -foreground #110022
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.112 FAILED
==== menu-2.115 entry configuration options 0 -foreground non-existent tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -foreground non-existent
---- Result was:
unknown color name "non-existent"
---- Result should have been (exact matching):
unknown option "-foreground"
==== menu-2.115 FAILED
==== menu-2.117 entry configuration options 2 -foreground non-existent cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -foreground non-existent
---- Result was:
unknown option "-foreground"
---- Result should have been (exact matching):
unknown color name "non-existent"
==== menu-2.117 FAILED
==== menu-2.118 entry configuration options 3 -foreground non-existent separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -foreground non-existent
---- Result was:
unknown color name "non-existent"
---- Result should have been (exact matching):
unknown option "-foreground"
==== menu-2.118 FAILED
==== menu-2.121 entry configuration options 0 -image image1 tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -image image1
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.121 FAILED
==== menu-2.123 entry configuration options 2 -image image1 cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -image image1
lindex [.m1 entryconfigure 2 -image] 4
---- Test setup failed:
unknown option "-image"
---- errorInfo(setup): unknown option "-image"
while executing
".m1 entryconfigure 2 -image {}"
("uplevel" body line 2)
invoked from within
"uplevel 1 $setup"
---- errorCode(setup): TK LOOKUP OPTION -image
---- Test cleanup failed:
unknown option "-image"
---- errorInfo(cleanup): unknown option "-image"
while executing
".m1 entryconfigure 2 -image {}"
("uplevel" body line 2)
invoked from within
"uplevel 1 $cleanup"
---- errorCode(cleanup): TK LOOKUP OPTION -image
==== menu-2.123 FAILED
==== menu-2.124 entry configuration options 3 -image image1 separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -image image1
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.124 FAILED
==== menu-2.127 entry configuration options 0 -image bogus tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -image bogus
---- Result was:
image "bogus" doesn't exist
---- Result should have been (exact matching):
unknown option "-image"
==== menu-2.127 FAILED
==== menu-2.129 entry configuration options 2 -image bogus cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -image bogus
---- Result was:
unknown option "-image"
---- Result should have been (exact matching):
image "bogus" doesn't exist
==== menu-2.129 FAILED
==== menu-2.130 entry configuration options 3 -image bogus separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -image bogus
---- Result was:
image "bogus" doesn't exist
---- Result should have been (exact matching):
unknown option "-image"
==== menu-2.130 FAILED
==== menu-2.133 entry configuration options 0 -image {} tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -image
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.133 FAILED
==== menu-2.135 entry configuration options 2 -image {} cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -image
lindex [.m1 entryconfigure 2 -image] 4
---- Test setup failed:
unknown option "-image"
---- errorInfo(setup): unknown option "-image"
while executing
".m1 entryconfigure 2 -image {}"
("uplevel" body line 2)
invoked from within
"uplevel 1 $setup"
---- errorCode(setup): TK LOOKUP OPTION -image
==== menu-2.135 FAILED
==== menu-2.136 entry configuration options 3 -image {} separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -image
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.136 FAILED
==== menu-2.142 entry configuration options 3 -indicatoron 1 separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -indicatoron 1
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.142 FAILED
==== menu-2.145 entry configuration options 0 -label test tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -label test
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.145 FAILED
==== menu-2.147 entry configuration options 2 -label test cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -label test
lindex [.m1 entryconfigure 2 -label] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-label"
while executing
".m1 entryconfigure 2 -label test"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -label
==== menu-2.147 FAILED
==== menu-2.148 entry configuration options 3 -label test separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -label test
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.148 FAILED
==== menu-2.152 entry configuration options 1 -menu .m2 command FAILED
==== Contents of test case:
.m1 entryconfigure 1 -menu .m2
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.152 FAILED
==== menu-2.153 entry configuration options 2 -menu .m2 cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -menu .m2
lindex [.m1 entryconfigure 2 -menu] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-menu"
while executing
".m1 entryconfigure 2 -menu .m2"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -menu
==== menu-2.153 FAILED
==== menu-2.160 entry configuration options 3 -offvalue off separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -offvalue off
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.160 FAILED
==== menu-2.161 entry configuration options 4 -offvalue off checkbutton FAILED
==== Contents of test case:
.m1 entryconfigure 4 -offvalue off
lindex [.m1 entryconfigure 4 -offvalue] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-offvalue"
while executing
".m1 entryconfigure 4 -offvalue off"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -offvalue
==== menu-2.161 FAILED
==== menu-2.166 entry configuration options 3 -onvalue on separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -onvalue on
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.166 FAILED
==== menu-2.167 entry configuration options 4 -onvalue on checkbutton FAILED
==== Contents of test case:
.m1 entryconfigure 4 -onvalue on
lindex [.m1 entryconfigure 4 -onvalue] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-onvalue"
while executing
".m1 entryconfigure 4 -onvalue on"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -onvalue
==== menu-2.167 FAILED
==== menu-2.172 entry configuration options 3 -selectcolor #110022 separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -selectcolor #110022
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.172 FAILED
==== menu-2.178 entry configuration options 3 -selectcolor non-existent separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -selectcolor non-existent
---- Result was:
unknown color name "non-existent"
---- Result should have been (exact matching):
unknown option "-selectcolor"
==== menu-2.178 FAILED
==== menu-2.184 entry configuration options 3 -selectimage image1 separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -selectimage image1
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.184 FAILED
==== menu-2.190 entry configuration options 3 -selectimage bogus separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -selectimage bogus
---- Result was:
image "bogus" doesn't exist
---- Result should have been (exact matching):
unknown option "-selectimage"
==== menu-2.190 FAILED
==== menu-2.196 entry configuration options 3 -selectimage {} separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -selectimage
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.196 FAILED
==== menu-2.201 entry configuration options 2 -state normal cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -state normal
lindex [.m1 entryconfigure 2 -state] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-state"
while executing
".m1 entryconfigure 2 -state normal"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -state
==== menu-2.201 FAILED
==== menu-2.202 entry configuration options 3 -state normal separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -state normal
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.202 FAILED
==== menu-2.209 entry configuration options 4 -value {any string} checkbutton FAILED
==== Contents of test case:
.m1 entryconfigure 4 -value {any string}
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.209 FAILED
==== menu-2.214 entry configuration options 3 -variable {any string} separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -variable {any string}
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.214 FAILED
==== menu-2.217 entry configuration options 0 -underline 0 tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -underline 0
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.217 FAILED
==== menu-2.219 entry configuration options 2 -underline 0 cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -underline 0
lindex [.m1 entryconfigure 2 -underline] 4
---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: unknown option "-underline"
while executing
".m1 entryconfigure 2 -underline 0"
("uplevel" body line 2)
invoked from within
"uplevel 1 $script"
---- errorCode: TK LOOKUP OPTION -underline
==== menu-2.219 FAILED
==== menu-2.220 entry configuration options 3 -underline 0 separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -underline 0
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-2.220 FAILED
==== menu-2.223 entry configuration options 0 -underline 3p tearoff FAILED
==== Contents of test case:
.m1 entryconfigure 0 -underline 3p
---- Result was:
expected integer but got "3p"
---- Result should have been (exact matching):
unknown option "-underline"
==== menu-2.223 FAILED
==== menu-2.225 entry configuration options 2 -underline 3p cascade FAILED
==== Contents of test case:
.m1 entryconfigure 2 -underline 3p
---- Result was:
unknown option "-underline"
---- Result should have been (exact matching):
expected integer but got "3p"
==== menu-2.225 FAILED
==== menu-2.226 entry configuration options 3 -underline 3p separator FAILED
==== Contents of test case:
.m1 entryconfigure 3 -underline 3p
---- Result was:
expected integer but got "3p"
---- Result should have been (exact matching):
unknown option "-underline"
==== menu-2.226 FAILED
==== menu-3.24 MenuWidgetCmd procedure, "delete" option FAILED
==== Contents of test case:
menu .m1
.m1 delete 0 "foo"
---- Test completed normally; Return code was: 0
---- Return code should have been one of: 1
==== menu-3.24 FAILED
==== menu-3.41 MenuWidgetCmd procedure, "index" option FAILED
==== Contents of test case:
menu .m1
.m1 add command -label "test"
.m1 add command -label "3"
.m1 add command -label "another label"
.m1 add command -label "end"
.m1 add command -label "3a"
.m1 add command -label "final entry"
list [.m1 index "test"] [.m1 index "3"] [.m1 index "3a"] [.m1 index "end"]
---- Result was:
0 3 4 5
---- Result should have been (exact matching):
1 3 5 6
==== menu-3.41 FAILED
==== menu-3.62 MenuWidgetCmd procedure, "type" option FAILED
==== Contents of test case:
menu .m1
.m1 type 0
---- Result was:
---- Result should have been (exact matching):
tearoff
==== menu-3.62 FAILED
==== menu-3.66 MenuWidgetCmd procedure, "yposition" option FAILED
==== Contents of test case:
menu .m1
.m1 yposition 1
---- Result was:
0
---- Result should have been (exact matching):
1
==== menu-3.66 FAILED
==== menu-4.6 TkInvokeMenu: radiobutton FAILED
==== Contents of test case:
catch {unset foo}
menu .m1
.m1 add radiobutton -label "1" -variable foo -value one
.m1 add radiobutton -label "2" -variable foo -value two
.m1 add radiobutton -label "3" -variable foo -value three
list [catch {.m1 invoke 1} msg] $msg [catch {set foo} msg2] $msg2 [catch {unset foo} msg3] $msg3
---- Result was:
0 {} 0 two 0 {}
---- Result should have been (exact matching):
0 {} 0 one 0 {}
==== menu-4.6 FAILED
==== menu-4.7 TkInvokeMenu: radiobutton FAILED
==== Contents of test case:
catch {unset foo}
menu .m1
.m1 add radiobutton -label "1" -variable foo -value one
.m1 add radiobutton -label "2" -variable foo -value two
.m1 add radiobutton -label "3" -variable foo -value three
list [catch {.m1 invoke 2} msg] $msg [catch {set foo} msg2] $msg2 [catch {unset foo} msg3] $msg3
---- Result was:
0 {} 0 three 0 {}
---- Result should have been (exact matching):
0 {} 0 two 0 {}
==== menu-4.7 FAILED
==== menu-4.12 TkInvokeMenu FAILED
==== Contents of test case:
menu .m1
.m1 add command -label "test" -command ".m1 delete 1"
list [catch {.m1 invoke 1} msg] $msg [catch {.m1 type "test"} msg2] $msg2
---- Result was:
0 {} 0 command
---- Result should have been (exact matching):
0 {} 1 {bad menu entry index "test"}
==== menu-4.12 FAILED
==== menu-8.6 DestroyMenuEntry FAILED
==== Contents of test case:
menu .m1
.m1 add command -label "one"
.m1 add command -label "two"
list [.m1 delete 1] [.m1 entrycget 1 -label] [destroy .m1]
---- Result was:
{} one {}
---- Result should have been (exact matching):
{} two {}
==== menu-8.6 FAILED
==== menu-13.1 TkGetMenuIndex FAILED
==== Contents of test case:
menu .m1
.m1 add command -label "active"
.m1 add command -label "test2"
.m1 add command -label "test3"
.m1 activate 2
.m1 entrycget active -label
---- Result was:
test3
---- Result should have been (exact matching):
test2
==== menu-13.1 FAILED
==== menu-13.7 TkGetMenuIndex FAILED
==== Contents of test case:
menu .m1
.m1 add command -label "active"
.m1 add command -label "test2"
.m1 add command -label "test3"
.m1 entrycget 1 -label
---- Result was:
test2
---- Result should have been (exact matching):
active
==== menu-13.7 FAILED
==== menu-16.4 MenuAddOrInsert FAILED
==== Contents of test case:
menu .m1
.m1 add command -label "test"
.m1 insert 0 command -label "test2"
.m1 entrycget 1 -label
---- Result was:
test
---- Result should have been (exact matching):
test2
==== menu-16.4 FAILED
==== menu-20.10 CloneMenu - tearoff fields FAILED
==== Contents of test case:
menu .m1
list [.m1 clone .m2 normal] [.m2 cget -tearoff]
---- Result was:
{} 0
---- Result should have been (exact matching):
{} 1
==== menu-20.10 FAILED
Tests ended at Sat Nov 04 09:27:54 CET 2017
all.tcl: Total 517 Passed 421 Skipped 11 Failed 85
Sourced 1 Test Files.
Files with failing tests: menu.test
Number of tests skipped for each constraint:
1 altDisplay
6 nonUnixUserInteraction
1 userInteraction
3 x11
| |||
Home
Timeline
Branches
Tags
Forum
Tickets
Download
Wiki