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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [insight/] [tk/] [tests/] [event.test] - Blame information for rev 1774

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 the code in tkEvent.c.  It is
2
# organized in the standard fashion for Tcl tests.
3
#
4
# Copyright (c) 1994 The Regents of the University of California.
5
# Copyright (c) 1994-1995 Sun Microsystems, Inc.
6
#
7
# See the file "license.terms" for information on usage and redistribution
8
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9
#
10
# RCS: @(#) $Id: event.test,v 1.1.1.1 2002-01-16 10:25:58 markom Exp $
11
 
12
if {[info procs test] != "test"} {
13
    source defs
14
}
15
 
16
foreach i [winfo children .] {
17
    destroy $i
18
}
19
wm geometry . {}
20
raise .
21
 
22
# XXX This test file is woefully incomplete.  Right now it only tests
23
# a few of the procedures in tkEvent.c.  Please add more tests whenever
24
# possible.
25
 
26
test event-1.1 {Tk_HandleEvent procedure, filter events for dead windows} {
27
    button .b -text Test
28
    pack .b
29
    bindtags .b .b
30
    update
31
    bind .b  {
32
        lappend x destroy
33
        event generate .b <1>
34
    }
35
    bind .b <1> {
36
        lappend x button
37
    }
38
    set x {}
39
    destroy .b
40
    set x
41
} {destroy}

powered by: WebSVN 2.1.0

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