diff options
author | fvogel <fvogelnew1@free.fr> | 2017-01-29 16:08:12 (GMT) |
---|---|---|
committer | fvogel <fvogelnew1@free.fr> | 2017-01-29 16:08:12 (GMT) |
commit | 5f9bf4fde729afc768b4c4b30fa778dc6f637605 (patch) | |
tree | 7dae4b8708bb19be78dd5daaafe941d7d5b6128b /tests | |
parent | 5be70aeb76c7c6ba94c9288632ddf1c094108f0e (diff) | |
parent | bc6a00f386a42a918f7ea3907a7899419680c3d4 (diff) | |
download | tk-5f9bf4fde729afc768b4c4b30fa778dc6f637605.zip tk-5f9bf4fde729afc768b4c4b30fa778dc6f637605.tar.gz tk-5f9bf4fde729afc768b4c4b30fa778dc6f637605.tar.bz2 |
Merge core-8-6-branch
Diffstat (limited to 'tests')
-rw-r--r-- | tests/imgPhoto.test | 17 | ||||
-rw-r--r-- | tests/textDisp.test | 6 |
2 files changed, 21 insertions, 2 deletions
diff --git a/tests/imgPhoto.test b/tests/imgPhoto.test index e85f512..e93dab4 100644 --- a/tests/imgPhoto.test +++ b/tests/imgPhoto.test @@ -797,6 +797,23 @@ test imgPhoto-4.73 {ImgPhotoCmd procedure: copy with -compositingrule} -setup { } -cleanup { image delete photo1 photo2 } -result {0,2 1,1 2,0} +test imgPhoto-4.74 {ImgPhotoCmd procedure: put option error handling} -setup { + image create photo photo1 +} -body { + photo1 put {{white}} -to 10 10 20 20 {{white}} +} -cleanup { + image delete photo1 +} -returnCodes 1 -result {wrong # args: should be "photo1 put data ?-option value ...?"} +test imgPhoto-4.75 {<photo> read command: filename starting with '-'} -constraints { + hasTeapotPhoto +} -body { + file copy -force $teapotPhotoFile -teapotPhotoFile + image create photo photo1 + photo1 read -teapotPhotoFile +} -cleanup { + image delete photo1 + file delete ./-teapotPhotoFile +} -result {} test imgPhoto-5.1 {ImgPhotoGet/Free procedures, shared instances} -constraints { hasTeapotPhoto diff --git a/tests/textDisp.test b/tests/textDisp.test index d3de2d8..8342c46 100644 --- a/tests/textDisp.test +++ b/tests/textDisp.test @@ -1952,13 +1952,15 @@ test textDisp-15.8 {Scrolling near end of window} { .tf.f.t insert end "\nLine $i" } update ; after 1000 ; update + set refind [.tf.f.t index @0,[winfo height .tf.f.t]] # Should scroll and should not crash! .tf.f.t yview scroll 1 unit # Check that it has scrolled - set res [.tf.f.t index @0,[expr [winfo height .tf.f.t] - 15]] + set newind [.tf.f.t index @0,[winfo height .tf.f.t]] + set res [.tf.f.t compare $newind > $refind] destroy .tf set res -} {12.0} +} {1} .t configure -wrap char .t delete 1.0 end |