diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-03 14:52:53 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2024-01-03 14:52:53 (GMT) |
commit | 3c699ca0fa3870fce82abf47ed3d2ea99043bdfa (patch) | |
tree | 9116cddd166b8fffdb5425abb04159e9648ed770 /tests | |
parent | 2eaac113f52bea5ecf64333618bca906c2482023 (diff) | |
download | tk-3c699ca0fa3870fce82abf47ed3d2ea99043bdfa.zip tk-3c699ca0fa3870fce82abf47ed3d2ea99043bdfa.tar.gz tk-3c699ca0fa3870fce82abf47ed3d2ea99043bdfa.tar.bz2 |
AllocFont() -> InitFont() in comments. Stolen from "less_tests_constraints" branch
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unixFont.test | 22 | ||||
-rw-r--r-- | tests/winFont.test | 8 |
2 files changed, 15 insertions, 15 deletions
diff --git a/tests/unixFont.test b/tests/unixFont.test index 3aeaa22..217e639 100644 --- a/tests/unixFont.test +++ b/tests/unixFont.test @@ -236,7 +236,7 @@ test unixfont-7.3 {DrawChars procedure: overstrike} x11 { .b.l config -font $f } {} -test unixfont-8.1 {AllocFont procedure: use old font} x11 { +test unixfont-8.1 {InitFont procedure: use old font} x11 { font create xyz button .c -font xyz font configure xyz -family times @@ -244,10 +244,10 @@ test unixfont-8.1 {AllocFont procedure: use old font} x11 { destroy .c font delete xyz } {} -test unixfont-8.2 {AllocFont procedure: parse information from XLFD} x11 { +test unixfont-8.2 {InitFont procedure: parse information from XLFD} x11 { expr {[lindex [font actual {-family times -size 0}] 3] == 0} } 0 -test unixfont-8.3 {AllocFont procedure: can't parse info from name} x11 { +test unixfont-8.3 {InitFont procedure: can't parse info from name} x11 { catch {unset fontArray} # check that font actual returns the correct attributes. # the values of those attributes are system dependent. @@ -256,7 +256,7 @@ test unixfont-8.3 {AllocFont procedure: can't parse info from name} x11 { catch {unset fontArray} set result } {-family -overstrike -size -slant -underline -weight} -test unixfont-8.4 {AllocFont procedure: classify characters} {x11 failsOnUbuntu failsOnXQuarz} { +test unixfont-8.4 {InitFont procedure: classify characters} {x11 failsOnUbuntu failsOnXQuarz} { set x 0 incr x [font measure $courier "\u4000"] ;# 6 incr x [font measure $courier "\002"] ;# 4 @@ -264,33 +264,33 @@ test unixfont-8.4 {AllocFont procedure: classify characters} {x11 failsOnUbuntu incr x [font measure $courier "\101"] ;# 1 set x } [expr $cx*13] -test unixfont-8.5 {AllocFont procedure: setup widths of normal chars} x11 { +test unixfont-8.5 {InitFont procedure: setup widths of normal chars} x11 { font metrics $courier -fixed } 1 -test unixfont-8.6 {AllocFont procedure: setup widths of special chars} {x11 failsOnUbuntu failsOnXQuarz} { +test unixfont-8.6 {InitFont procedure: setup widths of special chars} {x11 failsOnUbuntu failsOnXQuarz} { set x 0 incr x [font measure $courier "\001"] ;# 4 incr x [font measure $courier "\002"] ;# 4 incr x [font measure $courier "\012"] ;# 2 set x } [expr $cx*10] -test unixfont-8.7 {AllocFont procedure: XA_UNDERLINE_POSITION} x11 { +test unixfont-8.7 {InitFont procedure: XA_UNDERLINE_POSITION} x11 { catch {font actual -adobe-courier-bold-i-normal--0-0-0-0-m-0-iso8859-1} set x {} } {} -test unixfont-8.8 {AllocFont procedure: no XA_UNDERLINE_POSITION} x11 { +test unixfont-8.8 {InitFont procedure: no XA_UNDERLINE_POSITION} x11 { catch {font actual --symbol-medium-r-normal--0-0-0-0-p-0-sun-fontspecific} set x {} } {} -test unixfont-8.9 {AllocFont procedure: XA_UNDERLINE_THICKNESS} x11 { +test unixfont-8.9 {InitFont procedure: XA_UNDERLINE_THICKNESS} x11 { catch {font actual -adobe-courier-bold-i-normal--0-0-0-0-m-0-iso8859-1} set x {} } {} -test unixfont-8.10 {AllocFont procedure: no XA_UNDERLINE_THICKNESS} x11 { +test unixfont-8.10 {InitFont procedure: no XA_UNDERLINE_THICKNESS} x11 { catch {font actual --symbol-medium-r-normal--0-0-0-0-p-0-sun-fontspecific} set x {} } {} -test unixfont-8.11 {AllocFont procedure: XA_UNDERLINE_POSITION was 0} x11 { +test unixfont-8.11 {InitFont procedure: XA_UNDERLINE_POSITION was 0} x11 { catch {font actual -adobe-courier-bold-i-normal--0-0-0-0-m-0-iso8859-1} set x {} } {} diff --git a/tests/winFont.test b/tests/winFont.test index f5c945d..d769725 100644 --- a/tests/winFont.test +++ b/tests/winFont.test @@ -354,7 +354,7 @@ test winfont-6.1 {Tk_DrawChars procedure: loop test} -constraints win -setup { } -result {} -test winfont-7.1 {AllocFont procedure: use old font} -constraints win -setup { +test winfont-7.1 {InitFont procedure: use old font} -constraints win -setup { destroy .c } -setup { catch {font delete xyz} @@ -366,17 +366,17 @@ test winfont-7.1 {AllocFont procedure: use old font} -constraints win -setup { destroy .c font delete xyz } -result {} -test winfont-7.2 {AllocFont procedure: extract info from logfont} -constraints { +test winfont-7.2 {InitFont procedure: extract info from logfont} -constraints { win } -body { font actual {arial 10 bold italic underline overstrike} } -result {-family Arial -size 10 -weight bold -slant italic -underline 1 -overstrike 1} -test winfont-7.3 {AllocFont procedure: extract info from textmetric} -constraints { +test winfont-7.3 {InitFont procedure: extract info from textmetric} -constraints { win } -body { font metric {arial 10 bold italic underline overstrike} -fixed } -result 0 -test winfont-7.4 {AllocFont procedure: extract info from textmetric} -constraints { +test winfont-7.4 {InitFont procedure: extract info from textmetric} -constraints { win } -body { font metric systemfixed -fixed |