1
# This file is a Tcl script to test out Tk's "bell" command.
2
# It is organized in the standard fashion for Tcl tests.
4
# Copyright (c) 1994 The Regents of the University of California.
5
# Copyright (c) 1994-1996 Sun Microsystems, Inc.
6
# Copyright (c) 1998 by Scriptics Corporation.
8
# See the file "license.terms" for information on usage and redistribution
9
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
11
# RCS: @(#) $Id: bell.test,v 1.3 1998/09/30 19:01:22 rjohnson Exp $
13
if {[string compare test [info procs test]] == 1} {
17
test bell-1.1 {bell command} {
18
list [catch {bell a} msg] $msg
19
} {1 {wrong # args: should be "bell ?-displayof window?"}}
20
test bell-1.2 {bell command} {
21
list [catch {bell a b} msg] $msg
22
} {1 {bad option "a": must be -displayof}}
23
test bell-1.3 {bell command} {
24
list [catch {bell -displayof gorp} msg] $msg
25
} {1 {bad window path name "gorp"}}
26
test bell-1.4 {bell command} {
27
puts "Bell should ring now ..."