📄 bgerror.test
字号:
# This file is a Tcl script to test the bgerror command.# It is organized in the standard fashion for Tcl tests.## Copyright (c) 1997 Sun Microsystems, Inc.## See the file "license.terms" for information on usage and redistribution# of this file, and for a DISCLAIMER OF ALL WARRANTIES.## SCCS: @(#) bgerror.test 1.1 97/08/06 09:28:30if {[info commands test] == ""} { source defs}test bgerror-1.1 {bgerror / tkerror compat} { set errRes {} proc tkerror {err} { global errRes; set errRes $err; } after 0 {error err1} vwait errRes; set errRes;} err1test bgerror-1.2 {bgerror / tkerror compat / accumulation} { set errRes {} proc tkerror {err} { global errRes; lappend errRes $err; } after 0 {error err1} after 0 {error err2} after 0 {error err3} update set errRes;} {err1 err2 err3}test bgerror-1.3 {bgerror / tkerror compat / accumulation / break} { set errRes {} proc tkerror {err} { global errRes; lappend errRes $err; return -code break "skip!"; } after 0 {error err1} after 0 {error err2} after 0 {error err3} update set errRes;} err1catch {rename tkerror {}}# some testing of the default error dialog# would be needed too, but that's not easy at all# to emulate.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -