diff options
author | ericm <ericm> | 2000-03-29 00:09:05 (GMT) |
---|---|---|
committer | ericm <ericm> | 2000-03-29 00:09:05 (GMT) |
commit | 1e80b03098719125228a0114b3b1a0cd8e1e00c3 (patch) | |
tree | 6c3d1ba08edc50ecc28706589d03d3d2708fbe90 /tests/canvas.test | |
parent | 1572ee84e8f99582332894571332dbc6d4f06855 (diff) | |
download | tk-1e80b03098719125228a0114b3b1a0cd8e1e00c3.zip tk-1e80b03098719125228a0114b3b1a0cd8e1e00c3.tar.gz tk-1e80b03098719125228a0114b3b1a0cd8e1e00c3.tar.bz2 |
* library/tkfbox.tcl: Moved an overlooked tkFDialog* function inscriptics_sc_2_0_fixedscriptics_sc_2_0_b5
::tk::dialog::file namespace.
* tests/unixWm.test: Added tests for memory leak conditions in
tkUnixWm.c.
* tests/canvas.test: Added test for bad configuration options on
empty and non-empty canvas.
* generic/tkCanvas.c: Removed bad code in CANV_CONFIGURE block of
CanvasWidgetCmd; this was causing non-empty canvases to improperly
handle bad configuration options [Bug: 4456].
Diffstat (limited to 'tests/canvas.test')
-rw-r--r-- | tests/canvas.test | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/canvas.test b/tests/canvas.test index f02d404..86da456 100644 --- a/tests/canvas.test +++ b/tests/canvas.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: canvas.test,v 1.7 2000/03/02 21:52:25 hobbs Exp $ +# RCS: @(#) $Id: canvas.test,v 1.8 2000/03/29 00:09:06 ericm Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -67,6 +67,13 @@ foreach test { incr i } +test canvas-1.40 {configure throws error on bad option} { + set res [list [catch {.c configure -gorp foo}]] + .c create rect 10 10 100 100 + lappend res [catch {.c configure -gorp foo}] + set res +} [list 1 1] + catch {destroy .c} canvas .c -width 60 -height 40 -scrollregion {0 0 200 150} -bd 0 \ |