Tk Source Code

Attachment Details
Login
Overview

Artifact ID: 6ad7e84559ec572488204656f16dfa1f024a754a
Ticket: 1374556fffffffffffffffffffffffffffffffff
Date: 2005-12-07 00:02:15
User: lvirden
Artifact Attached: 8fbf2e57f984980a5fcb1dfb2ba3ec1cb672e1ad
Filename:solarisnative.test.txt
Description:
Content:
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
   100
   101
   102
   103
   104
   105
   106
   107
   108
   109
   110
   111
   112
   113
   114
   115
   116
   117
   118
   119
   120
   121
   122
   123
   124
   125
   126
   127
   128
   129
   130
   131
   132
   133
   134
   135
   136
   137
   138
   139
   140
   141
   142
   143
   144
   145
   146
   147
   148
   149
   150
   151
   152
   153
   154
   155
   156
   157
   158
   159
   160
   161
   162
   163
   164
   165
   166
   167
   168
   169
   170
   171
   172
   173
   174
   175
   176
   177
   178
   179
   180
   181
   182
   183
   184
   185
   186
   187
   188
   189
   190
   191
   192
   193
   194
   195
   196
   197
   198
   199
   200
   201
   202
   203
   204
   205
   206
   207
   208
   209
   210
   211
   212
   213
   214
   215
   216
   217
   218
   219
   220
   221
   222
   223
   224
   225
   226
   227
   228
   229
   230
   231
   232
   233
   234
   235
   236
   237
   238
   239
   240
   241
   242
   243
   244
   245
   246
   247
   248
   249
   250
   251
   252
   253
   254
   255
   256
   257
   258
   259
   260
   261
   262
   263
   264
   265
   266
   267
   268
   269
   270
   271
   272
   273
   274
   275
   276
   277
   278
   279
   280
   281
   282
   283
   284
   285
   286
   287
   288
   289
   290
   291
   292
   293
   294
   295
   296
   297
   298
   299
   300
   301
   302
   303
   304
   305
   306
   307
   308
   309
   310
   311
   312
   313
   314
   315
   316
   317
   318
   319
   320
   321
   322
   323
   324
   325
   326
   327
   328
   329
   330
   331
   332
   333
   334
   335
   336
   337
   338
   339
   340
Tests running in interp:  /tmp/tk8.4.12/unix/tktest
Tests located in:  /tmp/tk8.4.12/tests
Tests running in:  /tmp/tk8.4.12/unix
Temporary files stored in /tmp/tk8.4.12/unix
Test files sourced into current interpreter
Running tests that match:  *
Skipping test files that match:  l.*.test
Only running test files that match:  *.test
Tests began at Tue Dec 06 10:37:12 EST 2005
bell.test
Bell should ring now ...
bgerror.test
bind.test
bitmap.test
border.test
button.test
canvImg.test
canvPs.test
canvRect.test
canvText.test
canvWind.test
canvas.test
choosedir.test
clipboard.test
clrpick.test
cmds.test
color.test
config.test
cursor.test
dialog.test
embed.test
entry.test
event.test
filebox.test
focus.test

==== focus-5.1 ChangeXFocus procedure, don't take focus unless have it FAILED
==== Contents of test case:

    focusSetup
    focus -force .t
    update
    set result [focus]
    send [dobg {tk appname}] {focus -force .; update}
    lappend result [focus]
    focus .t.b2
    update
    lappend result [focus]

---- Result was:
.t .t {}
---- Result should have been (exact matching):
.t {} {}
==== focus-5.1 FAILED

focusTcl.test
font.test

==== font-45.4 TkFontGetAliasList: match FAILED
==== Contents of test case:

    # can fail on Unix systems that have a real "times new roman" font
    font actual {{times new roman} 10} -family

---- Result was:
times new roman
---- Result should have been (exact matching):
times
==== font-45.4 FAILED

frame.test

==== frame-3.9 TkCreateFrame procedure, -use option FAILED
==== Contents of test case:

    catch {destroy .t}
    catch {destroy .x}
    toplevel .t -container 1 -width 300 -height 120
    wm geometry .t +0+0
    toplevel .x -width 140 -height 300 -use [winfo id .t] -bg green
    tkwait visibility .x
    set result "[expr [winfo rootx .x] - [winfo rootx .t]] [expr [winfo rooty .x] - [winfo rooty .t]] [winfo width .t] [winfo height .t]"
    destroy .t
    set result

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: window ".x" was deleted before its visibility changed
    while executing
"tkwait visibility .x"
    ("uplevel" body line 7)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== frame-3.9 FAILED


==== frame-3.10 TkCreateFrame procedure, -use option FAILED
==== Contents of test case:

    catch {destroy .t}
    catch {destroy .x}
    toplevel .t -container 1 -width 300 -height 120
    wm geometry .t +0+0
    option add *x.use [winfo id .t]
    toplevel .x -width 140 -height 300 -bg green
    tkwait visibility .x
    set result "[expr [winfo rootx .x] - [winfo rootx .t]] [expr [winfo rooty .x] - [winfo rooty .t]] [winfo width .t] [winfo height .t]"
     destroy .t
    option clear
    set result

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: window ".x" was deleted before its visibility changed
    while executing
"tkwait visibility .x"
    ("uplevel" body line 8)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== frame-3.10 FAILED

geometry.test
get.test
grab.test
grid.test
id.test
image.test
imgBmap.test
imgPPM.test
imgPhoto.test
listbox.test
macEmbed.test
macFont.test
macMenu.test
macWinMenu.test
macscrollbar.test
main.test
menu.test
menuDraw.test
menubut.test
message.test
msgbox.test
obj.test
oldpack.test
option.test
pack.test
panedwindow.test
place.test
raise.test
safe.test
scale.test
scrollbar.test
select.test
send.test
spinbox.test
text.test
textBTree.test
textDisp.test
textImage.test
textIndex.test
textMark.test
textTag.test
textWind.test
tk.test
unixButton.test
unixEmbed.test
unixFont.test
unixMenu.test
unixSelect.test
unixWm.test

==== unixWm-4.1 moving window while withdrawn FAILED
==== Contents of test case:

	wm withdraw .t
	sleep 200
	wm geom .t $geom
	update
	wm deiconify .t
	wm geom .t
    
---- Result was:
100x150+57+80
---- Result should have been (exact matching):
100x150+20+80
==== unixWm-4.1 FAILED


==== unixWm-4.3 moving window while withdrawn FAILED
==== Contents of test case:

	wm withdraw .t
	sleep 200
	wm geom .t $geom
	update
	wm deiconify .t
	wm geom .t
    
---- Result was:
100x150+57+40
---- Result should have been (exact matching):
100x150+0+0
==== unixWm-4.3 FAILED


==== unixWm-50.1 Tk_CoordsToWindow procedure, finding a toplevel, x-coords FAILED
==== Contents of test case:

    deleteWindows
    toplevel .t -width 300 -height 400 -bg green
    wm geom .t +40+0
    tkwait visibility .t
    toplevel .t2 -width 100 -height 80 -bg red
    wm geom .t2 +140+200
    tkwait visibility .t2
    raise .t2
    set x [winfo rootx .t]
    set y [winfo rooty .t]
    list [winfo containing [expr $x - 30] [expr $y + 250]]  [winfo containing [expr $x - 1] [expr $y + 250]]  [winfo containing $x [expr $y + 250]]  [winfo containing [expr $x + 99] [expr $y + 250]]  [winfo containing [expr $x + 100] [expr $y + 250]]  [winfo containing [expr $x + 199] [expr $y + 250]]  [winfo containing [expr $x + 200] [expr $y + 250]]  [winfo containing [expr $x + 220] [expr $y + 250]]

---- Result was:
{} {} .t .t .t .t .t .t
---- Result should have been (exact matching):
{} {} .t {} .t2 .t2 {} .t
==== unixWm-50.1 FAILED


==== unixWm-50.5 Tk_CoordsToWindow procedure, handling menubars FAILED
==== Contents of test case:

    deleteWindows
    toplevel .t -width 300 -height 400 -bd 2 -relief raised
    frame .t.f -width 150 -height 120 -bg green
    place .t.f -x 10 -y 150
    wm geom .t +0+50
    frame .t.menu -width 100 -height 30 -bd 2 -relief raised
    frame .t.menu.f -width 40 -height 20 -bg purple
    place .t.menu.f -x 30 -y 10
    testmenubar window .t .t.menu
    tkwait visibility .t.menu
    update
    set x [winfo rootx .t]
    set y [winfo rooty .t]
    list [winfo containing $x [expr $y - 31]]  [winfo containing $x [expr $y - 30]]  [winfo containing [expr $x + 50] [expr $y - 19]]  [winfo containing [expr $x + 50] [expr $y - 18]]  [winfo containing [expr $x + 50] $y]  [winfo containing [expr $x + 11] [expr $y + 152]]  [winfo containing [expr $x + 12] [expr $y + 152]]

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: window ".t.menu" was deleted before its visibility changed
    while executing
"tkwait visibility .t.menu"
    ("uplevel" body line 11)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== unixWm-50.5 FAILED


==== unixWm-50.8 Tk_CoordsToWindow procedure, more basics FAILED
==== Contents of test case:

    catch {destroy .t}
    toplevel .t -width 400 -height 300 -bg green
    wm geom .t +0+0
    frame .t.f -width 200 -height 100 -bd 2 -relief raised
    place .t.f -x 100 -y 100
    frame .t.f.f -width 200 -height 100 -bd 2 -relief raised
    place .t.f.f -x 100 -y 0
    update
    set x [winfo rooty .t]
    set y [expr [winfo rooty .t] + 150]
    list [winfo containing [expr $x + 50] $y]  [winfo containing [expr $x + 150] $y]  [winfo containing [expr $x + 250] $y]  [winfo containing [expr $x + 350] $y]  [winfo containing [expr $x + 450] $y]

---- Result was:
.t.f .t.f.f .t {} {}
---- Result should have been (exact matching):
.t .t.f .t.f.f .t {}
==== unixWm-50.8 FAILED


==== unixWm-50.10 Tk_CoordsToWindow procedure, unmapped windows FAILED
==== Contents of test case:

    catch {destroy .t}
    toplevel .t -width 200 -height 200 -bg green
    wm geometry .t +0+0
    frame .t.f -width 150 -height 150 -bd 2 -relief raised
    place .t.f -x 25 -y 25
    tkwait visibility .t.f
    set result [list [winfo containing 100 100]]
    place forget .t.f
    update
    lappend result [winfo containing 100 100]

---- Result was:
.t .t
---- Result should have been (exact matching):
.t.f .t
==== unixWm-50.10 FAILED

util.test
visual.test
visual_bb.test
winButton.test
winClipboard.test
winDialog.test
winFont.test
winMenu.test
winSend.test
winWm.test
window.test
winfo.test
wm.test
xmfbox.test

Tests ended at Tue Dec 06 10:51:19 EST 2005
all.tcl:	Total	8486	Passed	7641	Skipped	835	Failed	10
Sourced 91 Test Files.
Files with failing tests: focus.test font.test frame.test unixWm.test
Number of tests skipped for each constraint:
	14	altDisplay
	16	colorsFree
	5	emptyTest
	1	hasArial
	1	hasCourierNew
	1	hasTimesNew
	312	macOnly
	20	macOrPc
	1	memory
	104	nonPortable
	35	nt
	242	pcOnly
	4	pseudocolor
	5	pseudocolor8
	11	testmetrics
	1	userInteraction
	10	win
	1	winOnly
	51	winSend