diff options
author | fvogel <fvogelnew1@free.fr> | 2019-11-10 22:30:12 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2019-11-10 22:30:12 (GMT) |
commit | 9b325ebbd06b8857fffffe9107c87e993ca550a8 (patch) | |
tree | cb80cd0c438cfceb2f5cf965a5a0f6396d5b9a2e /tests | |
parent | 00979fc3e90f332ebbdbea41c9efce20f422136e (diff) | |
download | tk-9b325ebbd06b8857fffffe9107c87e993ca550a8.zip tk-9b325ebbd06b8857fffffe9107c87e993ca550a8.tar.gz tk-9b325ebbd06b8857fffffe9107c87e993ca550a8.tar.bz2 |
Split wm-iconphoto-1.5 into the Win and Mac case on one hand (an error triggers), and the Linux case on the other hand (no error is produced, the image is valid and can be used as an iconphoto even if its size is 0x0)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/wm.test | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/wm.test b/tests/wm.test index e290b8c..22cd2ea 100644 --- a/tests/wm.test +++ b/tests/wm.test @@ -873,9 +873,12 @@ test wm-iconphoto-1.4 {usage} -returnCodes error -body { # we currently have no return info wm iconphoto . -default } -result {wrong # args: should be "wm iconphoto window ?-default? image1 ?image2 ...?"} -test wm-iconphoto-1.5 {usage} -returnCodes error -body { +test wm-iconphoto-1.5.1 {usage} -constraints aquaOrWin32 -returnCodes error -body { wm iconphoto . -default [image create photo -file {}] } -match {glob} -result {failed to create an iconphoto with image *} +test wm-iconphoto-1.5.2 {usage} -constraints x11 -body { + wm iconphoto . -default [image create photo -file {}] +} -result {} # All other iconphoto tests are platform specific |