diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-03-01 08:12:25 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-03-01 08:12:25 (GMT) |
commit | fcf2939ed21c5651477c20dd1d5b355a4389dea4 (patch) | |
tree | ffa22b560d58a0561098aa789bfdda6bfc105a3e /tests | |
parent | 75c07ea802e76a8d497b9c33a44f13695cb955fd (diff) | |
parent | 3b982fb8e11165c90a1376a4c7eb1f60a251c89b (diff) | |
download | tk-fcf2939ed21c5651477c20dd1d5b355a4389dea4.zip tk-fcf2939ed21c5651477c20dd1d5b355a4389dea4.tar.gz tk-fcf2939ed21c5651477c20dd1d5b355a4389dea4.tar.bz2 |
Merge 8.6
Diffstat (limited to 'tests')
-rw-r--r-- | tests/textDisp.test | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/textDisp.test b/tests/textDisp.test index fee8bd4..d1296b4 100644 --- a/tests/textDisp.test +++ b/tests/textDisp.test @@ -606,7 +606,7 @@ test textDisp-4.4 {UpdateDisplayInfo, wrap-mode "none"} {textfonts} { list [.t bbox 2.0] [.t bbox 2.25] [.t bbox 3.0] $tk_textRelayout } [list [list 5 [expr {$fixedDiff + 18}] 7 $fixedHeight] {} [list 5 [expr {2*$fixedDiff + 31}] 7 $fixedHeight] {1.0 2.0 3.0}] test textDisp-4.5 {UpdateDisplayInfo, tiny window} {textfonts} { - if {$tcl_platform(platform) == "windows"} { + if {[tk windowingsystem] == "win32"} { wm overrideredirect . 1 } wm geom . 103x$height @@ -617,7 +617,7 @@ test textDisp-4.5 {UpdateDisplayInfo, tiny window} {textfonts} { updateText list [.t bbox 2.0] [.t bbox 2.1] [.t bbox 3.0] $tk_textRelayout } [list [list 5 [expr {$fixedDiff + 18}] 1 $fixedHeight] {} [list 5 [expr {2*$fixedDiff + 31}] 1 $fixedHeight] {1.0 2.0 3.0}] -if {$tcl_platform(platform) == "windows"} { +if {[tk windowingsystem] == "win32"} { wm overrideredirect . 0 } test textDisp-4.6 {UpdateDisplayInfo, tiny window} { @@ -628,7 +628,7 @@ test textDisp-4.6 {UpdateDisplayInfo, tiny window} { # the overrideredirect on "." confuses the window manager and # causes subsequent tests to fail. - if {$tcl_platform(platform) == "windows"} { + if {[tk windowingsystem] == "win32"} { wm overrideredirect . 1 } frame .f2 -width 20 -height 100 @@ -660,7 +660,7 @@ test textDisp-4.7 {UpdateDisplayInfo, filling in extra vertical space} { # the overrideredirect on "." confuses the window manager and # causes subsequent tests to fail. - if {$tcl_platform(platform) == "windows"} { + if {[tk windowingsystem] == "win32"} { wm overrideredirect . 1 } .t delete 1.0 end @@ -3324,7 +3324,7 @@ test textDisp-24.15 {TkTextCharLayoutProc, -wrap none} {textfonts} { list [.t bbox 1.19] [.t bbox 1.20] } [list [list 136 3 7 $fixedHeight] [list 143 3 3 $fixedHeight]] test textDisp-24.16 {TkTextCharLayoutProc, no chars fit} {textfonts} { - if {$tcl_platform(platform) == "windows"} { + if {[tk windowingsystem] == "win32"} { wm overrideredirect . 1 } .t configure -wrap char @@ -3334,7 +3334,7 @@ test textDisp-24.16 {TkTextCharLayoutProc, no chars fit} {textfonts} { updateText list [.t bbox 1.0] [.t bbox 1.1] [.t bbox 1.2] } [list [list 3 3 1 $fixedHeight] [list 3 [expr {$fixedDiff + 16}] 1 $fixedHeight] [list 3 [expr {2*$fixedDiff + 29}] 1 $fixedHeight]] -if {$tcl_platform(platform) == "windows"} { +if {[tk windowingsystem] == "win32"} { wm overrideredirect . 0 } test textDisp-24.17 {TkTextCharLayoutProc, -wrap word} {textfonts} { |