Import Tk 8.6.8
This commit is contained in:
@@ -145,6 +145,18 @@ test font-4.10 {font command: actual} -constraints win -body {
|
||||
test font-4.11 {font command: bad option} -body {
|
||||
font actual xyz -style
|
||||
} -returnCodes error -result {bad option "-style": must be -family, -size, -weight, -slant, -underline, or -overstrike}
|
||||
test font-4.12 {font command: actual} -body {
|
||||
font actual {-family times} -- \ud800
|
||||
} -match glob -result {*}
|
||||
test font-4.13 {font command: actual} -body {
|
||||
font actual {-family times} -- \udc00
|
||||
} -match glob -result {*}
|
||||
test font-4.14 {font command: actual} -constraints win -body {
|
||||
font actual {-family times} -family -- \ud800\udc00
|
||||
} -result {Times New Roman}
|
||||
test font-4.15 {font command: actual} -body {
|
||||
font actual {-family times} -- \udc00\ud800
|
||||
} -returnCodes 1 -match glob -result {expected a single character but got "*"}
|
||||
|
||||
|
||||
test font-5.1 {font command: configure} -body {
|
||||
@@ -1944,6 +1956,16 @@ test font-31.6 {Tk_IntersectTextLayout procedure: ignore spaces at eol} -body {
|
||||
.t.c itemconfig text -width 0
|
||||
return $x
|
||||
} -result {}
|
||||
test font-31.7 {TkIntersectAngledTextLayout procedure: bug [514ff64dd0]} -body {
|
||||
csetup "This is line one\nand line two\nand line three here"
|
||||
.t.c itemconfigure text -angle 90
|
||||
# Coordinates of the rectangle to check can be hardcoded:
|
||||
# The goal of this test is to check whether the overlap detection algorithm
|
||||
# works when the rectangle is entirely included in a chunk of the text layout.
|
||||
# The text has been rotated 90 degrees around it's upper left corner,
|
||||
# so it's enough to check with a small rectangle with small negative y coords.
|
||||
.t.c find overlapping 5 -7 7 -5
|
||||
} -result {1}
|
||||
destroy .t.c
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user