Import Tk 8.6.11
This commit is contained in:
@@ -10,8 +10,8 @@ namespace import ::tcltest::*
|
||||
eval tcltest::configure $argv
|
||||
tcltest::loadTestedCommands
|
||||
|
||||
test border-1.1 {Tk_AllocBorderFromObj - converting internal reps} -constraints {
|
||||
testborder
|
||||
test border-1.1 {Tk_AllocBorderFromObj - converting internal reps} -constraints {
|
||||
testborder
|
||||
} -body {
|
||||
set x orange
|
||||
lindex $x 0
|
||||
@@ -21,8 +21,8 @@ test border-1.1 {Tk_AllocBorderFromObj - converting internal reps} -constraints
|
||||
} -cleanup {
|
||||
destroy .b1
|
||||
} -result {{1 0}}
|
||||
test border-1.2 {Tk_AllocBorderFromObj - discard stale border} -constraints {
|
||||
testborder
|
||||
test border-1.2 {Tk_AllocBorderFromObj - discard stale border} -constraints {
|
||||
testborder
|
||||
} -setup {
|
||||
set result {}
|
||||
} -body {
|
||||
@@ -35,8 +35,8 @@ test border-1.2 {Tk_AllocBorderFromObj - discard stale border} -constraints {
|
||||
} -cleanup {
|
||||
destroy .b1 .b2
|
||||
} -result {{} {{1 1}}}
|
||||
test border-1.3 {Tk_AllocBorderFromObj - reuse existing border} -constraints {
|
||||
testborder
|
||||
test border-1.3 {Tk_AllocBorderFromObj - reuse existing border} -constraints {
|
||||
testborder
|
||||
} -setup {
|
||||
set result {}
|
||||
} -body {
|
||||
@@ -49,7 +49,7 @@ test border-1.3 {Tk_AllocBorderFromObj - reuse existing border} -constraints {
|
||||
} -cleanup {
|
||||
destroy .b1 .b2
|
||||
} -result {{{1 1}} {{2 1}}}
|
||||
test border-1.4 {Tk_AllocBorderFromObj - try other borders in list} -constraints {
|
||||
test border-1.4 {Tk_AllocBorderFromObj - try other borders in list} -constraints {
|
||||
testborder pseudocolor8
|
||||
} -setup {
|
||||
toplevel .t -visual {pseudocolor 8} -colormap new
|
||||
@@ -70,7 +70,7 @@ test border-1.4 {Tk_AllocBorderFromObj - try other borders in list} -constraints
|
||||
destroy .b1 .b2 .t
|
||||
} -result {{{1 1}} {{1 1} {1 0}} {{1 0} {2 1}}}
|
||||
|
||||
test border-2.1 {Tk_Free3DBorder - reference counts} -constraints {
|
||||
test border-2.1 {Tk_Free3DBorder - reference counts} -constraints {
|
||||
testborder pseudocolor8
|
||||
} -setup {
|
||||
toplevel .t -visual {pseudocolor 8} -colormap new
|
||||
@@ -94,7 +94,7 @@ test border-2.1 {Tk_Free3DBorder - reference counts} -constraints {
|
||||
} -cleanup {
|
||||
destroy .b1 .b2 .t
|
||||
} -result {{{1 0} {2 1}} {{1 0} {1 1}} {{1 0}} {}}
|
||||
test border-2.2 {Tk_Free3DBorder - unlinking from list} -constraints {
|
||||
test border-2.2 {Tk_Free3DBorder - unlinking from list} -constraints {
|
||||
testborder pseudocolor8
|
||||
} -setup {
|
||||
toplevel .t -visual {pseudocolor 8} -colormap new
|
||||
@@ -127,8 +127,8 @@ test border-2.2 {Tk_Free3DBorder - unlinking from list} -constraints {
|
||||
destroy .b .t2 .t3 .t
|
||||
} -result {{{4 1} {3 0} {2 0} {1 0}} {{4 1} {2 0} {1 0}} {{4 1} {2 0}} {{2 0}} {}}
|
||||
|
||||
test border-3.1 {FreeBorderObjProc} -constraints {
|
||||
testborder
|
||||
test border-3.1 {FreeBorderObjProc} -constraints {
|
||||
testborder
|
||||
} -setup {
|
||||
set result {}
|
||||
proc copy {s} {return [string index $s 0][string range $s 1 end]}
|
||||
|
||||
Reference in New Issue
Block a user