OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tk/] [tests/] [bell.test] - Blame information for rev 1775

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# This file is a Tcl script to test out Tk's "bell" command.
2
# It is organized in the standard fashion for Tcl tests.
3
#
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.
7
#
8
# See the file "license.terms" for information on usage and redistribution
9
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
10
#
11
# RCS: @(#) $Id: bell.test,v 1.1.1.1 2002-01-16 10:25:58 markom Exp $
12
 
13
if {[string compare test [info procs test]] == 1} {
14
    source defs
15
}
16
 
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 ..."
28
    flush stdout
29
    after 500
30
    bell -displayof .
31
    after 200
32
    bell -dis .
33
    after 200
34
    bell
35
    after 200
36
    bell
37
} {}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.