diff options
author | hobbs <hobbs> | 1999-12-21 23:55:54 (GMT) |
---|---|---|
committer | hobbs <hobbs> | 1999-12-21 23:55:54 (GMT) |
commit | fdba0d6552ccb3b13cdb2b5f6ba531ebff096158 (patch) | |
tree | e0dc08286acce565bfa08ed69a213e879e5ed938 /tests/scale.test | |
parent | c825211c4960e2bda75e66a19f82c29cf2920e76 (diff) | |
download | tk-fdba0d6552ccb3b13cdb2b5f6ba531ebff096158.zip tk-fdba0d6552ccb3b13cdb2b5f6ba531ebff096158.tar.gz tk-fdba0d6552ccb3b13cdb2b5f6ba531ebff096158.tar.bz2 |
* scale.test:
* generic/tkScale.c:
* generic/tkScale.h: fixed possible core when freeing options
(cursor) associated with scale widget [Bug: 3897]
Diffstat (limited to 'tests/scale.test')
-rw-r--r-- | tests/scale.test | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/tests/scale.test b/tests/scale.test index 6926a9b..8db85ac 100644 --- a/tests/scale.test +++ b/tests/scale.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: scale.test,v 1.8 1999/12/14 06:53:14 hobbs Exp $ +# RCS: @(#) $Id: scale.test,v 1.9 1999/12/21 23:55:55 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -810,22 +810,15 @@ test scale-17.1 {bug fix 1786} { set x } {} +test scale-18.1 {DestroyScale, -cursor option [Bug: 3897]} { + catch {destroy .s} + scale .s -cursor trek + destroy .s +} {} + catch {destroy .s} option clear # cleanup ::tcltest::cleanupTests return - - - - - - - - - - - - - |