diff options
author | rjohnson <rjohnson> | 1999-04-06 04:50:58 (GMT) |
---|---|---|
committer | rjohnson <rjohnson> | 1999-04-06 04:50:58 (GMT) |
commit | 01854d472acdf4713d7a7b3c7f0a36b955eecf8c (patch) | |
tree | d3d1b1f6adf4213d2c0df3b473ffe5561fbdf081 | |
parent | d3d8d860b92173714e0bdc2e3a18d2c5b9798712 (diff) | |
download | tk-01854d472acdf4713d7a7b3c7f0a36b955eecf8c.zip tk-01854d472acdf4713d7a7b3c7f0a36b955eecf8c.tar.gz tk-01854d472acdf4713d7a7b3c7f0a36b955eecf8c.tar.bz2 |
Fxied safe.tests to know know about encoding command.
-rw-r--r-- | tests/safe.test | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/safe.test b/tests/safe.test index 9b0c069..bb3985f 100644 --- a/tests/safe.test +++ b/tests/safe.test @@ -6,7 +6,7 @@ # Copyright (c) 1998-1999 by Scriptics Corporation. # All rights reserved. # -# RCS: @(#) $Id: safe.test,v 1.1.4.6 1999/04/02 18:06:44 hershey Exp $ +# RCS: @(#) $Id: safe.test,v 1.1.4.7 1999/04/06 04:50:58 rjohnson Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { source [file join [pwd] [file dirname [info script]] defs.tcl] @@ -19,11 +19,11 @@ foreach i [winfo children .] { # The set of hidden commands is platform dependent: if {"$tcl_platform(platform)" == "macintosh"} { - set hidden_cmds {beep bell cd clipboard echo exit fconfigure file glob grab load ls menu open pwd selection send socket source tk tk_chooseColor tk_chooseDirectory tk_getOpenFile tk_getSaveFile toplevel wm} + set hidden_cmds {beep bell cd clipboard echo encoding exit fconfigure file glob grab load ls menu open pwd selection send socket source tk tk_chooseColor tk_chooseDirectory tk_getOpenFile tk_getSaveFile toplevel wm} } elseif {"$tcl_platform(platform)" == "windows"} { - set hidden_cmds {bell cd clipboard exec exit fconfigure file glob grab load menu open pwd selection socket source tk tk_chooseColor tk_getOpenFile tk_getSaveFile tk_messageBox toplevel wm} + set hidden_cmds {bell cd clipboard encoding exec exit fconfigure file glob grab load menu open pwd selection socket source tk tk_chooseColor tk_getOpenFile tk_getSaveFile tk_messageBox toplevel wm} } else { - set hidden_cmds {bell cd clipboard exec exit fconfigure file glob grab load menu open pwd selection send socket source tk toplevel wm} + set hidden_cmds {bell cd clipboard encoding exec exit fconfigure file glob grab load menu open pwd selection send socket source tk toplevel wm} } test safe-1.1 {Safe Tk loading into an interpreter} { @@ -48,7 +48,7 @@ test safe-1.3 {Safe Tk loading into an interpreter} { set l [lsort [interp aliases a]] safe::interpDelete a set l -} {exit file load source} +} {encoding exit file load source} test safe-2.1 {Unsafe commands not available} { catch {safe::interpDelete a} |