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

Subversion Repositories or1k

[/] [or1k/] [tags/] [start/] [insight/] [tix/] [tests/] [hlist/] [items.tcl] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 578 markom
# items.tcl --
2
#
3
#       Test the handling of DisplayStyle and DisplayItem.
4
#
5
# Copyright (c) 1996, Expert Interface Technologies
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
 
11
proc About {} {
12
    return "Test the handling of DisplayStyle and DisplayItem."
13
}
14
 
15
proc Test {} {
16
    TestBlock items-1.1 {tixTmpLine} {
17
        tixHList .c
18
        set style [tixDisplayStyle text -refwindow .c -font fixed]
19
        .c add a -itemtype text -style $style -text Hello
20
        .c add b -itemtype text -text Hello
21
 
22
        tixHList .d
23
        .d add a -itemtype text -style $style -text Hello
24
        .d add b -itemtype text -text Hello
25
 
26
        pack .c .d -expand yes -fill both
27
        update
28
 
29
        destroy .c
30
        update
31
        Assert {[string comp [info command $style] ""] == 0}
32
    }
33
 
34
    catch {
35
        destroy .c
36
    }
37
    catch {
38
        destroy .d
39
    }
40
}

powered by: WebSVN 2.1.0

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