arcadia 0.13.0 → 0.13.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +19 -15
- data/bin/arc +0 -0
- data/conf/LC/en-UK.LANG +1 -1
- data/conf/LC/ru-RU.LANG +272 -0
- data/conf/theme-dark.conf +3 -3
- data/ext/ae-dir-projects/ae-dir-projects.rb +5 -5
- data/ext/ae-editor/ae-editor.rb +302 -178
- data/ext/ae-subprocess-inspector/ae-subprocess-inspector.rb +2 -2
- data/ext/ae-term/ae-term.rb +11 -2
- data/lib/a-commons.rb +49 -19
- data/lib/a-contracts.rb +13 -0
- data/lib/a-core.rb +139 -36
- data/lib/a-tkcommons.rb +23 -8
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/ArrowButton.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/BWidget.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/Button.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/ButtonBox.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/ComboBox.html +8 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/Dialog.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/DragSite.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/DropSite.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/DynamicHelp.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/Entry.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/Label.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/LabelEntry.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/LabelFrame.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/ListBox.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/MainFrame.html +28 -23
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/MessageDlg.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/NoteBook.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/PagesManager.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/PanedWindow.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/PanelFrame.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/PasswdDlg.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/ProgressBar.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/ProgressDlg.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/ScrollView.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/ScrollableFrame.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/ScrolledWindow.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/SelectColor.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/SelectFont.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/Separator.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/SpinBox.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/StatusBar.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/TitleFrame.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/Tree.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/Widget.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/contents.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/index.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/navtree.html +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/BWman/options.htm +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/CHANGES.txt +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/ChangeLog +59 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/LICENSE.txt +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/README.txt +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/arrow.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/bitmap.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/button.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/buttonbox.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/color.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/combobox.tcl +8 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/demo/basic.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/demo/bwidget.xbm +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/demo/demo.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/demo/dnd.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/demo/manager.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/demo/select.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/demo/tmpldlg.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/demo/tree.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/demo/x1.xbm +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/dialog.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/dragsite.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/dropsite.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/dynhelp.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/entry.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/font.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/bold.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/copy.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/cut.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/dragfile.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/dragicon.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/error.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/file.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/folder.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/hourglass.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/info.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/italic.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/minus.xbm +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/new.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/opcopy.xbm +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/open.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/openfold.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/oplink.xbm +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/opmove.xbm +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/overstrike.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/palette.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/passwd.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/paste.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/plus.xbm +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/print.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/question.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/redo.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/save.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/target.xbm +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/underline.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/undo.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/images/warning.gif +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/init.tcl +9 -8
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/label.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/labelentry.tcl +4 -1
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/labelframe.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/lang/da.rc +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/lang/de.rc +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/lang/en.rc +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/lang/es.rc +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/lang/fr.rc +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/lang/hu.rc +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/lang/nl.rc +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/lang/no.rc +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/lang/pl.rc +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/listbox.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/mainframe.tcl +110 -22
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/messagedlg.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/notebook.tcl +13 -3
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/pagesmgr.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/panedw.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/panelframe.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/passwddlg.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/pkgIndex.tcl +2 -3
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/progressbar.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/progressdlg.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/scrollframe.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/scrollview.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/scrollw.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/separator.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/spinbox.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/statusbar.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/tests/entry.test +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/titleframe.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/tree.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/utils.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/widget.tcl +15 -2
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/wizard.tcl +0 -0
- data/tcl/{bwidget-1.9.6 → bwidget-1.9.7}/xpm2image.tcl +90 -28
- metadata +146 -196
- data/tcl/fsdialog/de.msg +0 -30
- data/tcl/fsdialog/en.msg +0 -31
- data/tcl/fsdialog/fsdialog.tcl +0 -1783
- data/tcl/fsdialog/fsdlg-gif.tcl +0 -259
- data/tcl/fsdialog/fsdlg-png.tcl +0 -265
- data/tcl/fsdialog/sv.msg +0 -32
- data/tcl/fsdialog/tclIndex +0 -6
- data/tcl/ptwidgets-1.1.0/COPYRIGHT +0 -10
- data/tcl/ptwidgets-1.1.0/ChangeLog +0 -194
- data/tcl/ptwidgets-1.1.0/README +0 -50
- data/tcl/ptwidgets-1.1.0/common/stacktrace.tcl +0 -29
- data/tcl/ptwidgets-1.1.0/common/tokenframe.tcl +0 -200
- data/tcl/ptwidgets-1.1.0/doc/img/toggleswitch_off.png +0 -0
- data/tcl/ptwidgets-1.1.0/doc/img/toggleswitch_on.png +0 -0
- data/tcl/ptwidgets-1.1.0/doc/img/tokenentry.png +0 -0
- data/tcl/ptwidgets-1.1.0/doc/img/tokensearch_popup_example.png +0 -0
- data/tcl/ptwidgets-1.1.0/doc/img/tokensearch_popup_example2.png +0 -0
- data/tcl/ptwidgets-1.1.0/doc/img/wmarkentry.png +0 -0
- data/tcl/ptwidgets-1.1.0/doc/toggleswitch.html +0 -402
- data/tcl/ptwidgets-1.1.0/doc/tokenentry.html +0 -1366
- data/tcl/ptwidgets-1.1.0/doc/tokensearch.html +0 -1549
- data/tcl/ptwidgets-1.1.0/doc/wmarkentry.html +0 -634
- data/tcl/ptwidgets-1.1.0/library/toggleswitch.tcl +0 -432
- data/tcl/ptwidgets-1.1.0/library/tokenentry.tcl +0 -2208
- data/tcl/ptwidgets-1.1.0/library/tokensearch.tcl +0 -2488
- data/tcl/ptwidgets-1.1.0/library/wmarkentry.tcl +0 -630
- data/tcl/ptwidgets-1.1.0/pkgIndex.tcl +0 -10
- data/tcl/ptwidgets-1.1.0/test/Makefile +0 -3
- data/tcl/ptwidgets-1.1.0/test/run.tcl +0 -3
- data/tcl/ptwidgets-1.1.0/test/test.tcl +0 -89
- data/tcl/ptwidgets-1.1.0/test/toggleswitch.test +0 -562
- data/tcl/ptwidgets-1.1.0/test/tokenentry.test +0 -1023
- data/tcl/ptwidgets-1.1.0/test/tokensearch.test +0 -1023
- data/tcl/ptwidgets-1.1.0/test/wmarkentry.test +0 -1325
- data/tcl/themes/altTheme.tcl +0 -101
- data/tcl/themes/aquaTheme.tcl +0 -59
- data/tcl/themes/clamTheme.tcl +0 -140
- data/tcl/themes/classicTheme.tcl +0 -108
- data/tcl/themes/pkgIndex.tcl +0 -3
- data/tcl/themes/ttk.tcl +0 -176
- data/tcl/themes/vistaTheme.tcl +0 -224
- data/tcl/themes/winTheme.tcl +0 -80
- data/tcl/themes/xpTheme.tcl +0 -65
- data/tcl/tkfbox/folder.gif +0 -0
- data/tcl/tkfbox/textfile.gif +0 -0
- data/tcl/tkfbox/tkfbox.tcl +0 -1
- data/tcl/tkfbox/tkfbox.tcl~ +0 -1
- data/tcl/tkfbox/updir.xbm +0 -1
@@ -1,1325 +0,0 @@
|
|
1
|
-
lappend auto_path ".."
|
2
|
-
|
3
|
-
package require wmarkentry
|
4
|
-
package require tcltest 2.2
|
5
|
-
|
6
|
-
proc setup {args} {
|
7
|
-
eval "wmarkentry::wmarkentry .wme $args"
|
8
|
-
pack .wme
|
9
|
-
}
|
10
|
-
|
11
|
-
proc cleanup {} {
|
12
|
-
destroy .wme
|
13
|
-
}
|
14
|
-
|
15
|
-
# Test Contraints
|
16
|
-
tcltest::testConstraint aqua [expr {[tk windowingsystem] eq "aqua"}]
|
17
|
-
tcltest::testConstraint x11 [expr {[tk windowingsystem] eq "x11"}]
|
18
|
-
|
19
|
-
# Tests
|
20
|
-
#---------------------------------
|
21
|
-
|
22
|
-
tcltest::test wme-configure-badoption {configure called with a bad option} \
|
23
|
-
-setup setup \
|
24
|
-
-body {
|
25
|
-
.wme configure -foobar
|
26
|
-
} -cleanup cleanup \
|
27
|
-
-returnCodes error -result "WMarkEntry configuration option -foobar does not exist"
|
28
|
-
|
29
|
-
tcltest::test wme-configure-badoptionwithvalue {configure called with a bad option with a value} \
|
30
|
-
-setup setup \
|
31
|
-
-body {
|
32
|
-
.wme configure -foobar bubba
|
33
|
-
} -cleanup cleanup \
|
34
|
-
-returnCodes error -result "Illegal option given to the wmarkentry configure command (-foobar)"
|
35
|
-
|
36
|
-
tcltest::test wme-cget {cget without an option} \
|
37
|
-
-setup setup \
|
38
|
-
-body {
|
39
|
-
.wme cget
|
40
|
-
} -cleanup cleanup \
|
41
|
-
-returnCodes error -result "Incorrect number of parameters given to the wmarkentry cget command"
|
42
|
-
|
43
|
-
#---------------------------------
|
44
|
-
tcltest::test wme-background {setup -background returns correct result} \
|
45
|
-
-setup {
|
46
|
-
setup -background blue
|
47
|
-
} -body {
|
48
|
-
.wme cget -background
|
49
|
-
} -cleanup cleanup \
|
50
|
-
-result blue
|
51
|
-
|
52
|
-
tcltest::test wme-background-cget-bg {setup -background returns correct result} \
|
53
|
-
-setup {
|
54
|
-
setup -background blue
|
55
|
-
} -body {
|
56
|
-
.wme cget -bg
|
57
|
-
} -cleanup cleanup \
|
58
|
-
-result blue
|
59
|
-
|
60
|
-
tcltest::test wme-configure-background {configure -background returns correct result} \
|
61
|
-
-setup {
|
62
|
-
setup -background blue
|
63
|
-
} -body {
|
64
|
-
.wme configure -background
|
65
|
-
} -cleanup cleanup \
|
66
|
-
-result {-background background Background white blue}
|
67
|
-
|
68
|
-
tcltest::test wme-bg {setup -bg returns correct result} \
|
69
|
-
-setup {
|
70
|
-
setup -bg blue
|
71
|
-
} -body {
|
72
|
-
.wme cget -bg
|
73
|
-
} -cleanup cleanup \
|
74
|
-
-result blue
|
75
|
-
|
76
|
-
tcltest::test wme-bg-cget-background {setup -bg returns correct result} \
|
77
|
-
-setup {
|
78
|
-
setup -bg blue
|
79
|
-
} -body {
|
80
|
-
.wme cget -background
|
81
|
-
} -cleanup cleanup \
|
82
|
-
-result blue
|
83
|
-
|
84
|
-
tcltest::test wme-configure-bg {configure -bg returns correct result} \
|
85
|
-
-setup {
|
86
|
-
setup -bg blue
|
87
|
-
} -body {
|
88
|
-
.wme configure -bg
|
89
|
-
} -cleanup cleanup \
|
90
|
-
-result {-background background Background white blue}
|
91
|
-
|
92
|
-
tcltest::test wme-cget-background {cget -background returns the correct result} \
|
93
|
-
-setup setup \
|
94
|
-
-body {
|
95
|
-
.wme cget -background
|
96
|
-
} -cleanup cleanup \
|
97
|
-
-result white
|
98
|
-
|
99
|
-
tcltest::test wme-cget-bg {cget -bg returns the correct result} \
|
100
|
-
-setup setup \
|
101
|
-
-body {
|
102
|
-
.wme cget -bg
|
103
|
-
} -cleanup cleanup \
|
104
|
-
-result white
|
105
|
-
|
106
|
-
tcltest::test wme-configure-cget-background {configure/cget -background returns the correct result} \
|
107
|
-
-setup setup \
|
108
|
-
-body {
|
109
|
-
.wme configure -background blue
|
110
|
-
.wme cget -background
|
111
|
-
} -cleanup cleanup \
|
112
|
-
-result blue
|
113
|
-
|
114
|
-
tcltest::test wme-configure-cget-bg {configure/cget -bg returns correct result} \
|
115
|
-
-setup setup \
|
116
|
-
-body {
|
117
|
-
.wme configure -bg blue
|
118
|
-
.wme cget -bg
|
119
|
-
} -cleanup cleanup \
|
120
|
-
-result blue
|
121
|
-
|
122
|
-
tcltest::test wme-configure-background-cget-bg {configure/cget -background/-bg returns correct result} \
|
123
|
-
-setup setup \
|
124
|
-
-body {
|
125
|
-
.wme configure -background blue
|
126
|
-
.wme cget -bg
|
127
|
-
} -cleanup cleanup \
|
128
|
-
-result blue
|
129
|
-
|
130
|
-
tcltest::test wme-configure-bg-cget-background {configure/cget -bg/-background returns correct result} \
|
131
|
-
-setup setup \
|
132
|
-
-body {
|
133
|
-
.wme configure -bg blue
|
134
|
-
.wme cget -background
|
135
|
-
} -cleanup cleanup \
|
136
|
-
-result blue
|
137
|
-
|
138
|
-
#---------------------------------
|
139
|
-
tcltest::test wme-configure-borderwidth {configure -borderwidth returns correct result} \
|
140
|
-
-setup {
|
141
|
-
setup -borderwidth 5
|
142
|
-
} -body {
|
143
|
-
.wme configure -borderwidth
|
144
|
-
} -cleanup cleanup \
|
145
|
-
-match glob \
|
146
|
-
-result {-borderwidth borderWidth BorderWidth * 5}
|
147
|
-
|
148
|
-
tcltest::test wme-configure-bd {configure -bd returns correct result} \
|
149
|
-
-setup {
|
150
|
-
setup -bd 5
|
151
|
-
} -body {
|
152
|
-
.wme configure -bd
|
153
|
-
} -cleanup cleanup \
|
154
|
-
-match glob \
|
155
|
-
-result {-borderwidth borderWidth BorderWidth * 5}
|
156
|
-
|
157
|
-
tcltest::test wme-cget-borderwidth {cget -borderwidth returns the correct result} \
|
158
|
-
-setup {
|
159
|
-
setup -borderwidth 5
|
160
|
-
} -body {
|
161
|
-
.wme cget -borderwidth
|
162
|
-
} -cleanup cleanup \
|
163
|
-
-result 5
|
164
|
-
|
165
|
-
tcltest::test wme-cget-bd {cget -bd returns the correct result} \
|
166
|
-
-setup {
|
167
|
-
setup -bd 5
|
168
|
-
} -body {
|
169
|
-
.wme cget -bd
|
170
|
-
} -cleanup cleanup \
|
171
|
-
-result 5
|
172
|
-
|
173
|
-
tcltest::test wme-configure-cget-borderwidth {configure/cget -borderwidth returns the correct result} \
|
174
|
-
-setup setup \
|
175
|
-
-body {
|
176
|
-
.wme configure -borderwidth 2
|
177
|
-
.wme cget -borderwidth
|
178
|
-
} -cleanup cleanup \
|
179
|
-
-result 2
|
180
|
-
|
181
|
-
tcltest::test wme-configure-cget-bd {configure/cget -bd returns the correct result} \
|
182
|
-
-setup setup \
|
183
|
-
-body {
|
184
|
-
.wme configure -bd 2
|
185
|
-
.wme cget -bd
|
186
|
-
} -cleanup cleanup \
|
187
|
-
-result 2
|
188
|
-
|
189
|
-
tcltest::test wme-configure-borderwidth-cget-bd {configure/cget -borderwidth/-bd returns the correct result} \
|
190
|
-
-setup setup \
|
191
|
-
-body {
|
192
|
-
.wme configure -borderwidth 2
|
193
|
-
.wme cget -bd
|
194
|
-
} -cleanup cleanup \
|
195
|
-
-result 2
|
196
|
-
|
197
|
-
tcltest::test wme-configure-bd-cget-borderwidth {configure/cget -bd/-borderwidth returns the correct result} \
|
198
|
-
-setup setup \
|
199
|
-
-body {
|
200
|
-
.wme configure -bd 2
|
201
|
-
.wme cget -borderwidth
|
202
|
-
} -cleanup cleanup \
|
203
|
-
-result 2
|
204
|
-
|
205
|
-
#---------------------------------
|
206
|
-
tcltest::test wme-configure-cursor {configure -cursor returns correct result} \
|
207
|
-
-setup {
|
208
|
-
setup -cursor xterm
|
209
|
-
} -body {
|
210
|
-
.wme configure -cursor
|
211
|
-
} -cleanup cleanup \
|
212
|
-
-result {-cursor cursor Cursor xterm xterm}
|
213
|
-
|
214
|
-
tcltest::test wme-cget-cursor {cget -cursor returns correct result} \
|
215
|
-
-setup setup \
|
216
|
-
-body {
|
217
|
-
.wme cget -cursor
|
218
|
-
} -cleanup cleanup \
|
219
|
-
-result xterm
|
220
|
-
|
221
|
-
tcltest::test wme-configure-cget-cursor {configure/cget -cursor returns correct result} \
|
222
|
-
-setup setup \
|
223
|
-
-body {
|
224
|
-
.wme configure -cursor watch
|
225
|
-
.wme cget -cursor
|
226
|
-
} -cleanup cleanup \
|
227
|
-
-result watch
|
228
|
-
|
229
|
-
#---------------------------------
|
230
|
-
tcltest::test wme-configure-disabledbackground {configure -disabledbackground returns correct result} \
|
231
|
-
-setup {
|
232
|
-
setup -disabledbackground yellow
|
233
|
-
} -body {
|
234
|
-
.wme configure -disabledbackground
|
235
|
-
} -cleanup cleanup \
|
236
|
-
-match regexp \
|
237
|
-
-result {-disabledbackground disabledBackground DisabledBackground \S+ yellow}
|
238
|
-
|
239
|
-
tcltest::test wme-cget-disabledbackground {cget -disabledbackground returns correct result} \
|
240
|
-
-setup {
|
241
|
-
setup -disabledbackground yellow
|
242
|
-
} -body {
|
243
|
-
.wme cget -disabledbackground
|
244
|
-
} -cleanup cleanup \
|
245
|
-
-result yellow
|
246
|
-
|
247
|
-
tcltest::test wme-configure-cget-disabledbackground {configure/cget -disabledbackground returns correct result} \
|
248
|
-
-setup setup \
|
249
|
-
-body {
|
250
|
-
.wme configure -disabledbackground yellow
|
251
|
-
.wme cget -disabledbackground
|
252
|
-
} -cleanup cleanup \
|
253
|
-
-result yellow
|
254
|
-
|
255
|
-
#---------------------------------
|
256
|
-
tcltest::test wme-configure-disabledforeground {configure -disabledforeground returns correct result} \
|
257
|
-
-setup {
|
258
|
-
setup -disabledforeground yellow
|
259
|
-
} -body {
|
260
|
-
.wme configure -disabledforeground
|
261
|
-
} -cleanup cleanup \
|
262
|
-
-match regexp \
|
263
|
-
-result {-disabledforeground disabledForeground DisabledForeground \S+ yellow}
|
264
|
-
|
265
|
-
tcltest::test wme-cget-disabledforeground {cget -disabledforeground returns correct result} \
|
266
|
-
-setup {
|
267
|
-
setup -disabledforeground yellow
|
268
|
-
} -body {
|
269
|
-
.wme cget -disabledforeground
|
270
|
-
} -cleanup cleanup \
|
271
|
-
-result yellow
|
272
|
-
|
273
|
-
tcltest::test wme-configure-cget-disabledforeground {configure/cget -disabledforeground returns correct result} \
|
274
|
-
-setup setup \
|
275
|
-
-body {
|
276
|
-
.wme configure -disabledforeground orange
|
277
|
-
.wme cget -disabledforeground
|
278
|
-
} -cleanup cleanup \
|
279
|
-
-result orange
|
280
|
-
|
281
|
-
#---------------------------------
|
282
|
-
tcltest::test wme-configure-exportselection {configure -exportselection returns correct result} \
|
283
|
-
-setup {
|
284
|
-
setup -exportselection 1
|
285
|
-
} -body {
|
286
|
-
.wme configure -exportselection
|
287
|
-
} -cleanup cleanup \
|
288
|
-
-result {-exportselection exportSelection ExportSelection 1 1}
|
289
|
-
|
290
|
-
tcltest::test wme-cget-exportselection {cget -exportselection returns correct result} \
|
291
|
-
-setup {
|
292
|
-
setup -exportselection 1
|
293
|
-
} -body {
|
294
|
-
.wme cget -exportselection
|
295
|
-
} -cleanup cleanup \
|
296
|
-
-result 1
|
297
|
-
|
298
|
-
tcltest::test wme-configure-cget-exportselection {configure/cget -exportselection returns correct result} \
|
299
|
-
-setup setup \
|
300
|
-
-body {
|
301
|
-
.wme configure -exportselection 0
|
302
|
-
.wme cget -exportselection
|
303
|
-
} -cleanup cleanup \
|
304
|
-
-result 0
|
305
|
-
|
306
|
-
#---------------------------------
|
307
|
-
tcltest::test wme-configure-font {configure -font returns correct result} \
|
308
|
-
-setup {
|
309
|
-
setup -font TkTextFont
|
310
|
-
} -body {
|
311
|
-
.wme configure -font
|
312
|
-
} -cleanup cleanup \
|
313
|
-
-result {-font font Font TkTextFont TkTextFont}
|
314
|
-
|
315
|
-
tcltest::test wme-cget-font {cget -font returns correct result} \
|
316
|
-
-setup {
|
317
|
-
setup -font TkTextFont
|
318
|
-
} -body {
|
319
|
-
.wme cget -font
|
320
|
-
} -cleanup cleanup \
|
321
|
-
-result TkTextFont
|
322
|
-
|
323
|
-
tcltest::test wme-configure-cget-font {configure/cget -font returns correct result} \
|
324
|
-
-setup setup \
|
325
|
-
-body {
|
326
|
-
.wme configure -font TkFixedFont
|
327
|
-
.wme cget -font
|
328
|
-
} -cleanup cleanup \
|
329
|
-
-result TkFixedFont
|
330
|
-
|
331
|
-
#---------------------------------
|
332
|
-
tcltest::test wme-configure-foreground {configure -foreground returns correct result} \
|
333
|
-
-setup {
|
334
|
-
setup -foreground yellow
|
335
|
-
} -body {
|
336
|
-
.wme configure -foreground
|
337
|
-
} -cleanup cleanup \
|
338
|
-
-match regexp \
|
339
|
-
-result {-foreground foreground Foreground \S+ yellow}
|
340
|
-
|
341
|
-
tcltest::test wme-configure-fg {configure -fg returns correct result} \
|
342
|
-
-setup {
|
343
|
-
setup -fg yellow
|
344
|
-
} -body {
|
345
|
-
.wme configure -fg
|
346
|
-
} -cleanup cleanup \
|
347
|
-
-match regexp \
|
348
|
-
-result {-foreground foreground Foreground \S+ yellow}
|
349
|
-
|
350
|
-
tcltest::test wme-cget-foreground {cget -foreground returns correct result} \
|
351
|
-
-setup {
|
352
|
-
setup -foreground yellow
|
353
|
-
} -body {
|
354
|
-
.wme cget -foreground
|
355
|
-
} -cleanup cleanup \
|
356
|
-
-result yellow
|
357
|
-
|
358
|
-
tcltest::test wme-cget-fg {cget -fg returns correct result} \
|
359
|
-
-setup {
|
360
|
-
setup -fg yellow
|
361
|
-
} -body {
|
362
|
-
.wme cget -fg
|
363
|
-
} -cleanup cleanup \
|
364
|
-
-result yellow
|
365
|
-
|
366
|
-
tcltest::test wme-configure-cget-foreground {configure/cget -foreground returns correct result} \
|
367
|
-
-setup setup \
|
368
|
-
-body {
|
369
|
-
.wme configure -foreground red
|
370
|
-
.wme cget -foreground
|
371
|
-
} -cleanup cleanup \
|
372
|
-
-result red
|
373
|
-
|
374
|
-
tcltest::test wme-configure-cget-fg {configure/cget -fg returns correct result} \
|
375
|
-
-setup setup \
|
376
|
-
-body {
|
377
|
-
.wme configure -fg red
|
378
|
-
.wme cget -fg
|
379
|
-
} -cleanup cleanup \
|
380
|
-
-result red
|
381
|
-
|
382
|
-
tcltest::test wme-configure-foreground-cget-fg {configure/cget -foreground/-fg returns correct result} \
|
383
|
-
-setup setup \
|
384
|
-
-body {
|
385
|
-
.wme configure -foreground red
|
386
|
-
.wme cget -fg
|
387
|
-
} -cleanup cleanup \
|
388
|
-
-result red
|
389
|
-
|
390
|
-
tcltest::test wme-configure-fg-cget-foreground {configure/cget -fg/-foreground returns correct result} \
|
391
|
-
-setup setup \
|
392
|
-
-body {
|
393
|
-
.wme configure -fg red
|
394
|
-
.wme cget -foreground
|
395
|
-
} -cleanup cleanup \
|
396
|
-
-result red
|
397
|
-
|
398
|
-
#---------------------------------
|
399
|
-
tcltest::test wme-configure-highlightbackground {configure -highlightbackground returns correct result} \
|
400
|
-
-setup {
|
401
|
-
setup -highlightbackground yellow
|
402
|
-
} -body {
|
403
|
-
.wme configure -highlightbackground
|
404
|
-
} -cleanup cleanup \
|
405
|
-
-match regexp \
|
406
|
-
-result {-highlightbackground highlightBackground HighlightBackground \S+ yellow}
|
407
|
-
|
408
|
-
tcltest::test wme-cget-highlightbackground {cget -highlightbackground returns correct result} \
|
409
|
-
-setup {
|
410
|
-
setup -highlightbackground yellow
|
411
|
-
} -body {
|
412
|
-
.wme cget -highlightbackground
|
413
|
-
} -cleanup cleanup \
|
414
|
-
-result yellow
|
415
|
-
|
416
|
-
tcltest::test wme-configure-cget-highlightbackground {configure/cget -highlightbackground returns correct result} \
|
417
|
-
-setup setup \
|
418
|
-
-body {
|
419
|
-
.wme configure -highlightbackground yellow
|
420
|
-
.wme cget -highlightbackground
|
421
|
-
} -cleanup cleanup \
|
422
|
-
-result yellow
|
423
|
-
|
424
|
-
#---------------------------------
|
425
|
-
tcltest::test wme-configure-highlightcolor {configure -highlightcolor returns correct result} \
|
426
|
-
-setup {
|
427
|
-
setup -highlightcolor yellow
|
428
|
-
} -body {
|
429
|
-
.wme configure -highlightcolor
|
430
|
-
} -cleanup cleanup \
|
431
|
-
-match regexp \
|
432
|
-
-result {-highlightcolor highlightColor HighlightColor \S+ yellow}
|
433
|
-
|
434
|
-
tcltest::test wme-cget-highlightcolor {cget -highlightcolor returns correct result} \
|
435
|
-
-setup {
|
436
|
-
setup -highlightcolor yellow
|
437
|
-
} -body {
|
438
|
-
.wme cget -highlightcolor
|
439
|
-
} -cleanup cleanup \
|
440
|
-
-result yellow
|
441
|
-
|
442
|
-
tcltest::test wme-configure-cget-highlightcolor {configure/cget -highlightcolor returns correct result} \
|
443
|
-
-setup setup \
|
444
|
-
-body {
|
445
|
-
.wme configure -highlightcolor yellow
|
446
|
-
.wme cget -highlightcolor
|
447
|
-
} -cleanup cleanup \
|
448
|
-
-result yellow
|
449
|
-
|
450
|
-
#---------------------------------
|
451
|
-
tcltest::test wme-configure-highlightthickness {configure -highlightthickness returns correct result} \
|
452
|
-
-setup {
|
453
|
-
setup -highlightthickness 2
|
454
|
-
} -body {
|
455
|
-
.wme configure -highlightthickness
|
456
|
-
} -cleanup cleanup \
|
457
|
-
-match glob \
|
458
|
-
-result {-highlightthickness highlightThickness HighlightThickness * 2}
|
459
|
-
|
460
|
-
tcltest::test wme-cget-highlightthickness {cget -highlightthickness returns correct result} \
|
461
|
-
-setup {
|
462
|
-
setup -highlightthickness 2
|
463
|
-
} -body {
|
464
|
-
.wme cget -highlightthickness
|
465
|
-
} -cleanup cleanup \
|
466
|
-
-result 2
|
467
|
-
|
468
|
-
tcltest::test wme-configure-cget-highlightthickness {configure/cget -highlightthickness returns correct result} \
|
469
|
-
-setup setup \
|
470
|
-
-body {
|
471
|
-
.wme configure -highlightthickness 5
|
472
|
-
.wme cget -highlightthickness
|
473
|
-
} -cleanup cleanup \
|
474
|
-
-result 5
|
475
|
-
|
476
|
-
#---------------------------------
|
477
|
-
tcltest::test wme-configure-insertbackground {configure -insertbackground returns correct result} \
|
478
|
-
-setup {
|
479
|
-
setup -insertbackground yellow
|
480
|
-
} -body {
|
481
|
-
.wme configure -insertbackground
|
482
|
-
} -cleanup cleanup \
|
483
|
-
-match regexp \
|
484
|
-
-result {-insertbackground insertBackground InsertBackground \S+ yellow}
|
485
|
-
|
486
|
-
tcltest::test wme-cget-insertbackground {cget -insertbackground returns correct result} \
|
487
|
-
-setup {
|
488
|
-
setup -insertbackground yellow
|
489
|
-
} -body {
|
490
|
-
.wme cget -insertbackground
|
491
|
-
} -cleanup cleanup \
|
492
|
-
-result yellow
|
493
|
-
|
494
|
-
tcltest::test wme-configure-cget-insertbackground {configure/cget -insertbackground returns correct result} \
|
495
|
-
-setup setup \
|
496
|
-
-body {
|
497
|
-
.wme configure -insertbackground yellow
|
498
|
-
.wme cget -insertbackground
|
499
|
-
} -cleanup cleanup \
|
500
|
-
-result yellow
|
501
|
-
|
502
|
-
#---------------------------------
|
503
|
-
tcltest::test wme-configure-insertborderwidth {configure -insertborderwidth returns correct result} \
|
504
|
-
-setup {
|
505
|
-
setup -insertborderwidth 0
|
506
|
-
} -body {
|
507
|
-
.wme configure -insertborderwidth
|
508
|
-
} -cleanup cleanup \
|
509
|
-
-match glob \
|
510
|
-
-result {-insertborderwidth insertBorderWidth InsertBorderWidth * 0}
|
511
|
-
|
512
|
-
tcltest::test wme-cget-insertborderwidth {cget -insertborderwidth returns correct result} \
|
513
|
-
-setup {
|
514
|
-
setup -insertborderwidth 0
|
515
|
-
} -body {
|
516
|
-
.wme cget -insertborderwidth
|
517
|
-
} -cleanup cleanup \
|
518
|
-
-result 0
|
519
|
-
|
520
|
-
tcltest::test wme-configure-cget-insertborderwidth {configure/cget -insertborderwidth returns correct result} \
|
521
|
-
-setup setup \
|
522
|
-
-body {
|
523
|
-
.wme configure -insertborderwidth 0
|
524
|
-
.wme cget -insertborderwidth
|
525
|
-
} -cleanup cleanup \
|
526
|
-
-result 0
|
527
|
-
|
528
|
-
#---------------------------------
|
529
|
-
tcltest::test wme-configure-insertofftime {configure -insertofftime returns correct result} \
|
530
|
-
-setup {
|
531
|
-
setup -insertofftime 500
|
532
|
-
} -body {
|
533
|
-
.wme configure -insertofftime
|
534
|
-
} -cleanup cleanup \
|
535
|
-
-match regexp \
|
536
|
-
-result {-insertofftime insertOffTime InsertOffTime \d+ 500}
|
537
|
-
|
538
|
-
tcltest::test wme-cget-insertofftime {cget -insertofftime returns correct result} \
|
539
|
-
-setup {
|
540
|
-
setup -insertofftime 500
|
541
|
-
} -body {
|
542
|
-
.wme cget -insertofftime
|
543
|
-
} -cleanup cleanup \
|
544
|
-
-result 500
|
545
|
-
|
546
|
-
tcltest::test wme-configure-cget-insertofftime {configure/cget -insertofftime returns correct result} \
|
547
|
-
-setup setup \
|
548
|
-
-body {
|
549
|
-
.wme configure -insertofftime 600
|
550
|
-
.wme cget -insertofftime
|
551
|
-
} -cleanup cleanup \
|
552
|
-
-result 600
|
553
|
-
|
554
|
-
#---------------------------------
|
555
|
-
tcltest::test wme-configure-insertontime {configure -insertontime returns correct result} \
|
556
|
-
-setup {
|
557
|
-
setup -insertontime 500
|
558
|
-
} -body {
|
559
|
-
.wme configure -insertontime
|
560
|
-
} -cleanup cleanup \
|
561
|
-
-match regexp \
|
562
|
-
-result {-insertontime insertOnTime InsertOnTime \d+ 500}
|
563
|
-
|
564
|
-
tcltest::test wme-cget-insertontime {cget -insertontime returns correct result} \
|
565
|
-
-setup {
|
566
|
-
setup -insertontime 500
|
567
|
-
} -body {
|
568
|
-
.wme cget -insertontime
|
569
|
-
} -cleanup cleanup \
|
570
|
-
-result 500
|
571
|
-
|
572
|
-
tcltest::test wme-configure-cget-insertontime {configure/cget -insertontime returns correct result} \
|
573
|
-
-setup setup \
|
574
|
-
-body {
|
575
|
-
.wme configure -insertontime 1000
|
576
|
-
.wme cget -insertontime
|
577
|
-
} -cleanup cleanup \
|
578
|
-
-result 1000
|
579
|
-
|
580
|
-
#---------------------------------
|
581
|
-
tcltest::test wme-configure-insertwidth {configure -insertwidth returns correct result} \
|
582
|
-
-setup {
|
583
|
-
setup -insertwidth 5
|
584
|
-
} -body {
|
585
|
-
.wme configure -insertwidth
|
586
|
-
} -cleanup cleanup \
|
587
|
-
-match glob \
|
588
|
-
-result {-insertwidth insertWidth InsertWidth * 5}
|
589
|
-
|
590
|
-
tcltest::test wme-cget-insertwidth {cget -insertwidth returns correct result} \
|
591
|
-
-setup {
|
592
|
-
setup -insertwidth 5
|
593
|
-
} -body {
|
594
|
-
.wme cget -insertwidth
|
595
|
-
} -cleanup cleanup \
|
596
|
-
-result 5
|
597
|
-
|
598
|
-
tcltest::test wme-configure-cget-insertwidth {configure/cget -insertwidth returns correct result} \
|
599
|
-
-setup setup \
|
600
|
-
-body {
|
601
|
-
.wme configure -insertwidth 10
|
602
|
-
.wme cget -insertwidth
|
603
|
-
} -cleanup cleanup \
|
604
|
-
-result 10
|
605
|
-
|
606
|
-
#---------------------------------
|
607
|
-
tcltest::test wme-configure-invalidcommand {configure -invalidcommand returns correct result} \
|
608
|
-
-setup setup \
|
609
|
-
-body {
|
610
|
-
.wme configure -invalidcommand
|
611
|
-
} -cleanup cleanup \
|
612
|
-
-result {-invalidcommand invalidCommand InvalidCommand {} {}}
|
613
|
-
|
614
|
-
tcltest::test wme-configure-invcmd {configure -invcmd returns correct result} \
|
615
|
-
-setup setup \
|
616
|
-
-body {
|
617
|
-
.wme configure -invcmd
|
618
|
-
} -cleanup cleanup \
|
619
|
-
-result {-invalidcommand invalidCommand InvalidCommand {} {}}
|
620
|
-
|
621
|
-
tcltest::test wme-cget-invalidcommand {cget -invalidcommand returns correct result} \
|
622
|
-
-setup setup \
|
623
|
-
-body {
|
624
|
-
.wme cget -invalidcommand
|
625
|
-
} -cleanup cleanup \
|
626
|
-
-result ""
|
627
|
-
|
628
|
-
tcltest::test wme-cget-invcmd {cget -invcmd returns correct result} \
|
629
|
-
-setup setup \
|
630
|
-
-body {
|
631
|
-
.wme cget -invcmd
|
632
|
-
} -cleanup cleanup \
|
633
|
-
-result ""
|
634
|
-
|
635
|
-
tcltest::test wme-configure-cget-invalidcommand {configure/cget -invalidcommand returns correct result} \
|
636
|
-
-setup setup \
|
637
|
-
-body {
|
638
|
-
.wme configure -invalidcommand foobar
|
639
|
-
.wme cget -invalidcommand
|
640
|
-
} -cleanup cleanup \
|
641
|
-
-result foobar
|
642
|
-
|
643
|
-
tcltest::test wme-configure-cget-invcmd {configure/cget -invcmd returns correct result} \
|
644
|
-
-setup setup \
|
645
|
-
-body {
|
646
|
-
.wme configure -invcmd foobar
|
647
|
-
.wme cget -invcmd
|
648
|
-
} -cleanup cleanup \
|
649
|
-
-result foobar
|
650
|
-
|
651
|
-
tcltest::test wme-configure-invalidcommand-cget-invcmd {configure/cget -invalidcommand/-invcmd returns correct result} \
|
652
|
-
-setup setup \
|
653
|
-
-body {
|
654
|
-
.wme configure -invalidcommand foobar
|
655
|
-
.wme cget -invcmd
|
656
|
-
} -cleanup cleanup \
|
657
|
-
-result foobar
|
658
|
-
|
659
|
-
tcltest::test wme-configure-invcmd-cget-invalidcommand {configure/cget -invcmd/-invalidcommand returns correct result} \
|
660
|
-
-setup setup \
|
661
|
-
-body {
|
662
|
-
.wme configure -invcmd foobar
|
663
|
-
.wme cget -invalidcommand
|
664
|
-
} -cleanup cleanup \
|
665
|
-
-result foobar
|
666
|
-
|
667
|
-
#---------------------------------
|
668
|
-
tcltest::test wme-configure-justify {configure -justify returns correct result} \
|
669
|
-
-setup {
|
670
|
-
setup -justify right
|
671
|
-
} -body {
|
672
|
-
.wme configure -justify
|
673
|
-
} -cleanup cleanup \
|
674
|
-
-match regexp \
|
675
|
-
-result {-justify justify Justify \S+ right}
|
676
|
-
|
677
|
-
tcltest::test wme-cget-justify {cget -justify returns correct result} \
|
678
|
-
-setup {
|
679
|
-
setup -justify right
|
680
|
-
} -body {
|
681
|
-
.wme cget -justify
|
682
|
-
} -cleanup cleanup \
|
683
|
-
-result right
|
684
|
-
|
685
|
-
tcltest::test wme-configure-cget-justify {configure/cget -justify returns correct result} \
|
686
|
-
-setup setup \
|
687
|
-
-body {
|
688
|
-
.wme configure -justify right
|
689
|
-
.wme cget -justify
|
690
|
-
} -cleanup cleanup \
|
691
|
-
-result right
|
692
|
-
|
693
|
-
#---------------------------------
|
694
|
-
tcltest::test wme-configure-readonlybackground {configure -readonlybackground returns correct result} \
|
695
|
-
-setup {
|
696
|
-
setup -readonlybackground yellow
|
697
|
-
} -body {
|
698
|
-
.wme configure -readonlybackground
|
699
|
-
} -cleanup cleanup \
|
700
|
-
-match regexp \
|
701
|
-
-result {-readonlybackground readonlyBackground ReadonlyBackground \S+ yellow}
|
702
|
-
|
703
|
-
tcltest::test wme-cget-readonlybackground {cget -readonlybackground returns correct result} \
|
704
|
-
-setup {
|
705
|
-
setup -readonlybackground yellow
|
706
|
-
} -body {
|
707
|
-
.wme cget -readonlybackground
|
708
|
-
} -cleanup cleanup \
|
709
|
-
-result yellow
|
710
|
-
|
711
|
-
tcltest::test wme-configure-cget-readonlybackground {configure/cget -readonlybackground returns correct result} \
|
712
|
-
-setup setup \
|
713
|
-
-body {
|
714
|
-
.wme configure -readonlybackground yellow
|
715
|
-
.wme cget -readonlybackground
|
716
|
-
} -cleanup cleanup \
|
717
|
-
-result yellow
|
718
|
-
|
719
|
-
#---------------------------------
|
720
|
-
tcltest::test wme-configure-relief {configure -relief returns correct result} \
|
721
|
-
-setup {
|
722
|
-
setup -relief flat
|
723
|
-
} -body {
|
724
|
-
.wme configure -relief
|
725
|
-
} -cleanup cleanup \
|
726
|
-
-match regexp \
|
727
|
-
-result {-relief relief Relief \S+ flat}
|
728
|
-
|
729
|
-
tcltest::test wme-cget-relief {cget -relief returns correct result} \
|
730
|
-
-setup {
|
731
|
-
setup -relief flat
|
732
|
-
} -body {
|
733
|
-
.wme cget -relief
|
734
|
-
} -cleanup cleanup \
|
735
|
-
-result flat
|
736
|
-
|
737
|
-
tcltest::test wme-configure-cget-relief {configure/cget -relief returns correct result} \
|
738
|
-
-setup setup \
|
739
|
-
-body {
|
740
|
-
.wme configure -relief ridge
|
741
|
-
.wme cget -relief
|
742
|
-
} -cleanup cleanup \
|
743
|
-
-result ridge
|
744
|
-
|
745
|
-
#---------------------------------
|
746
|
-
tcltest::test wme-configure-selectbackground {configure -selectbackground returns correct result} \
|
747
|
-
-setup {
|
748
|
-
setup -selectbackground yellow
|
749
|
-
} -body {
|
750
|
-
.wme configure -selectbackground
|
751
|
-
} -cleanup cleanup \
|
752
|
-
-match regexp \
|
753
|
-
-result {-selectbackground selectBackground Background \S+ yellow}
|
754
|
-
|
755
|
-
tcltest::test wme-cget-selectbackground {cget -selectbackground returns correct result} \
|
756
|
-
-setup {
|
757
|
-
setup -selectbackground yellow
|
758
|
-
} -body {
|
759
|
-
.wme cget -selectbackground
|
760
|
-
} -cleanup cleanup \
|
761
|
-
-result yellow
|
762
|
-
|
763
|
-
tcltest::test wme-configure-cget-selectbackground {configure/cget -selectbackground returns correct result} \
|
764
|
-
-setup setup \
|
765
|
-
-body {
|
766
|
-
.wme configure -selectbackground yellow
|
767
|
-
.wme cget -selectbackground
|
768
|
-
} -cleanup cleanup \
|
769
|
-
-result yellow
|
770
|
-
|
771
|
-
#---------------------------------
|
772
|
-
tcltest::test wme-configure-selectborderwidth {configure -selectborderwidth returns correct result} \
|
773
|
-
-setup {
|
774
|
-
setup -selectborderwidth 5
|
775
|
-
} -body {
|
776
|
-
.wme configure -selectborderwidth
|
777
|
-
} -cleanup cleanup \
|
778
|
-
-match glob \
|
779
|
-
-result {-selectborderwidth selectBorderWidth BorderWidth * 5}
|
780
|
-
|
781
|
-
tcltest::test wme-cget-selectborderwidth {cget -selectborderwidth returns correct result} \
|
782
|
-
-setup {
|
783
|
-
setup -selectborderwidth 5
|
784
|
-
} -body {
|
785
|
-
.wme cget -selectborderwidth
|
786
|
-
} -cleanup cleanup \
|
787
|
-
-result 5
|
788
|
-
|
789
|
-
tcltest::test wme-configure-cget-selectborderwidth {configure/cget -selectborderwidth returns correct result} \
|
790
|
-
-setup setup \
|
791
|
-
-body {
|
792
|
-
.wme configure -selectborderwidth 1
|
793
|
-
.wme cget -selectborderwidth
|
794
|
-
} -cleanup cleanup \
|
795
|
-
-result 1
|
796
|
-
|
797
|
-
#---------------------------------
|
798
|
-
tcltest::test wme-configure-selectforeground {configure -selectforeground returns correct result} \
|
799
|
-
-setup {
|
800
|
-
setup -selectforeground yellow
|
801
|
-
} -body {
|
802
|
-
.wme configure -selectforeground
|
803
|
-
} -cleanup cleanup \
|
804
|
-
-match regexp \
|
805
|
-
-result {-selectforeground selectForeground Foreground \S+ yellow}
|
806
|
-
|
807
|
-
tcltest::test wme-cget-selectforeground {cget -selectforeground returns correct result} \
|
808
|
-
-setup {
|
809
|
-
setup -selectforeground yellow
|
810
|
-
} -body {
|
811
|
-
.wme cget -selectforeground
|
812
|
-
} -cleanup cleanup \
|
813
|
-
-result yellow
|
814
|
-
|
815
|
-
tcltest::test wme-configure-cget-selectforeground {configure/cget -selectforeground returns correct result} \
|
816
|
-
-setup setup \
|
817
|
-
-body {
|
818
|
-
.wme configure -selectforeground yellow
|
819
|
-
.wme cget -selectforeground
|
820
|
-
} -cleanup cleanup \
|
821
|
-
-result yellow
|
822
|
-
|
823
|
-
#---------------------------------
|
824
|
-
tcltest::test wme-configure-show {configure -show returns correct result} \
|
825
|
-
-setup setup \
|
826
|
-
-body {
|
827
|
-
.wme configure -show
|
828
|
-
} -cleanup cleanup \
|
829
|
-
-result {-show show Show {} {}}
|
830
|
-
|
831
|
-
tcltest::test wme-cget-show {cget -show returns correct result} \
|
832
|
-
-setup setup \
|
833
|
-
-body {
|
834
|
-
.wme cget -show
|
835
|
-
} -cleanup cleanup \
|
836
|
-
-result ""
|
837
|
-
|
838
|
-
tcltest::test wme-configure-cget-show {configure/cget -show returns correct result} \
|
839
|
-
-setup setup \
|
840
|
-
-body {
|
841
|
-
.wme configure -show 1
|
842
|
-
.wme cget -show
|
843
|
-
} -cleanup cleanup \
|
844
|
-
-result 1
|
845
|
-
|
846
|
-
#---------------------------------
|
847
|
-
tcltest::test wme-configure-state {configure -state returns correct result} \
|
848
|
-
-setup {
|
849
|
-
setup -state disabled
|
850
|
-
} -body {
|
851
|
-
.wme configure -state
|
852
|
-
} -cleanup cleanup \
|
853
|
-
-result {-state state State normal disabled}
|
854
|
-
|
855
|
-
tcltest::test wme-cget-state {cget -state returns correct result} \
|
856
|
-
-setup setup \
|
857
|
-
-body {
|
858
|
-
.wme cget -state
|
859
|
-
} -cleanup cleanup \
|
860
|
-
-result normal
|
861
|
-
|
862
|
-
tcltest::test wme-configure-cget-state {configure/cget -state returns correct result} \
|
863
|
-
-setup setup \
|
864
|
-
-body {
|
865
|
-
.wme configure -state disabled
|
866
|
-
.wme cget -state
|
867
|
-
} -cleanup cleanup \
|
868
|
-
-result disabled
|
869
|
-
|
870
|
-
#---------------------------------
|
871
|
-
tcltest::test wme-configure-takefocus {configure -takefocus returns correct result} \
|
872
|
-
-setup setup \
|
873
|
-
-body {
|
874
|
-
.wme configure -takefocus
|
875
|
-
} -cleanup cleanup \
|
876
|
-
-result {-takefocus takeFocus TakeFocus 1 1}
|
877
|
-
|
878
|
-
tcltest::test wme-cget-takefocus {cget -takefocus returns correct result} \
|
879
|
-
-setup setup \
|
880
|
-
-body {
|
881
|
-
.wme cget -takefocus
|
882
|
-
} -cleanup cleanup \
|
883
|
-
-result 1
|
884
|
-
|
885
|
-
tcltest::test wme-configure-cget-takefocus {configure/cget -takefocsu returns correct result} \
|
886
|
-
-setup setup \
|
887
|
-
-body {
|
888
|
-
.wme configure -takefocus 0
|
889
|
-
.wme cget -takefocus
|
890
|
-
} -cleanup cleanup \
|
891
|
-
-result 0
|
892
|
-
|
893
|
-
#---------------------------------
|
894
|
-
tcltest::test wme-configure-textvariable {configure -textvariable returns correct result} \
|
895
|
-
-setup setup \
|
896
|
-
-body {
|
897
|
-
.wme configure -textvariable
|
898
|
-
} -cleanup cleanup \
|
899
|
-
-result {-textvariable textVariable Variable {} {}}
|
900
|
-
|
901
|
-
tcltest::test wme-cget-textvariable {cget -textvariable returns correct result} \
|
902
|
-
-setup setup \
|
903
|
-
-body {
|
904
|
-
.wme cget -textvariable
|
905
|
-
} -cleanup cleanup \
|
906
|
-
-result ""
|
907
|
-
|
908
|
-
tcltest::test wme-configure-cget-textvariable {configure/cget -textvariable returns correct result} \
|
909
|
-
-setup setup \
|
910
|
-
-body {
|
911
|
-
set ::foobar "buddy"
|
912
|
-
.wme configure -textvariable ::foobar
|
913
|
-
.wme cget -textvariable
|
914
|
-
} -cleanup {
|
915
|
-
cleanup
|
916
|
-
unset ::foobar
|
917
|
-
} -result ::foobar
|
918
|
-
|
919
|
-
#---------------------------------
|
920
|
-
tcltest::test wme-configure-validate {configure -validate returns correct result} \
|
921
|
-
-setup setup \
|
922
|
-
-body {
|
923
|
-
.wme configure -validate
|
924
|
-
} -cleanup cleanup \
|
925
|
-
-result {-validate validate Validate none none}
|
926
|
-
|
927
|
-
tcltest::test wme-cget-validate {cget -validate returns correct result} \
|
928
|
-
-setup setup \
|
929
|
-
-body {
|
930
|
-
.wme cget -validate
|
931
|
-
} -cleanup cleanup \
|
932
|
-
-result none
|
933
|
-
|
934
|
-
tcltest::test wme-configure-cget-validate {configure/cget -validate returns correct result} \
|
935
|
-
-setup setup \
|
936
|
-
-body {
|
937
|
-
.wme configure -validate key
|
938
|
-
.wme cget -validate
|
939
|
-
} -cleanup cleanup \
|
940
|
-
-result key
|
941
|
-
|
942
|
-
#---------------------------------
|
943
|
-
tcltest::test wme-configure-validatecommand {configure -validatecommand returns correct result} \
|
944
|
-
-setup setup \
|
945
|
-
-body {
|
946
|
-
.wme configure -validatecommand
|
947
|
-
} -cleanup cleanup \
|
948
|
-
-result {-validatecommand validateCommand ValidateCommand {} {}}
|
949
|
-
|
950
|
-
tcltest::test wme-configure-vcmd {configure -vcmd returns correct result} \
|
951
|
-
-setup setup \
|
952
|
-
-body {
|
953
|
-
.wme configure -vcmd
|
954
|
-
} -cleanup cleanup \
|
955
|
-
-result {-validatecommand validateCommand ValidateCommand {} {}}
|
956
|
-
|
957
|
-
tcltest::test wme-cget-validatecommand {cget -validatecommand returns correct result} \
|
958
|
-
-setup setup \
|
959
|
-
-body {
|
960
|
-
.wme cget -validatecommand
|
961
|
-
} -cleanup cleanup \
|
962
|
-
-result ""
|
963
|
-
|
964
|
-
tcltest::test wme-cget-vcmd {cget -vcmd returns correct result} \
|
965
|
-
-setup setup \
|
966
|
-
-body {
|
967
|
-
.wme cget -vcmd
|
968
|
-
} -cleanup cleanup \
|
969
|
-
-result ""
|
970
|
-
|
971
|
-
tcltest::test wme-configure-cget-validatecommand {configure/cget -validatecommand returns correct result} \
|
972
|
-
-setup setup \
|
973
|
-
-body {
|
974
|
-
.wme configure -validatecommand foobar
|
975
|
-
.wme cget -validatecommand
|
976
|
-
} -cleanup cleanup \
|
977
|
-
-result foobar
|
978
|
-
|
979
|
-
tcltest::test wme-configure-cget-vcmd {configure/cget -vcmd returns correct result} \
|
980
|
-
-setup setup \
|
981
|
-
-body {
|
982
|
-
.wme configure -vcmd foobar
|
983
|
-
.wme cget -vcmd
|
984
|
-
} -cleanup cleanup \
|
985
|
-
-result foobar
|
986
|
-
|
987
|
-
#---------------------------------
|
988
|
-
tcltest::test wme-configure-watermark {configure -watermark returns correct result} \
|
989
|
-
-setup setup \
|
990
|
-
-body {
|
991
|
-
.wme configure -watermark
|
992
|
-
} -cleanup cleanup \
|
993
|
-
-result {-watermark watermark Watermark {} {}}
|
994
|
-
|
995
|
-
tcltest::test wme-cget-watermark {cget -watermark returns correct result} \
|
996
|
-
-setup setup \
|
997
|
-
-body {
|
998
|
-
.wme cget -watermark
|
999
|
-
} -cleanup cleanup \
|
1000
|
-
-result ""
|
1001
|
-
|
1002
|
-
tcltest::test wme-configure-cget-watermark {configure/cget -watermark returns correct result} \
|
1003
|
-
-setup setup \
|
1004
|
-
-body {
|
1005
|
-
.wme configure -watermark "Enter string"
|
1006
|
-
.wme cget -watermark
|
1007
|
-
} -cleanup cleanup \
|
1008
|
-
-result "Enter string"
|
1009
|
-
|
1010
|
-
tcltest::test wme-no-watermark {verify that no watermark exists in the entry field when -watermark is empty} \
|
1011
|
-
-setup setup \
|
1012
|
-
-body {
|
1013
|
-
.wme configure -watermark ""
|
1014
|
-
.wme.e get
|
1015
|
-
} -cleanup cleanup \
|
1016
|
-
-result ""
|
1017
|
-
|
1018
|
-
tcltest::test wme-watermark {verify that a watermark exists in the entry field when -watermark is non-empty} \
|
1019
|
-
-setup setup \
|
1020
|
-
-body {
|
1021
|
-
.wme configure -watermark "Enter string"
|
1022
|
-
.wme.e get
|
1023
|
-
} -cleanup cleanup \
|
1024
|
-
-result "Enter string"
|
1025
|
-
|
1026
|
-
tcltest::test wme-watermark-removed {verify that the watermark is removed when text is inserted into the widget} \
|
1027
|
-
-setup setup \
|
1028
|
-
-body {
|
1029
|
-
.wme configure -watermark "Enter string"
|
1030
|
-
.wme insert end "foobar"
|
1031
|
-
.wme.e get
|
1032
|
-
} -cleanup cleanup \
|
1033
|
-
-result "foobar"
|
1034
|
-
|
1035
|
-
#---------------------------------
|
1036
|
-
tcltest::test wme-configure-watermarkforeground {configure -watermarkforeground returns correct result} \
|
1037
|
-
-setup setup \
|
1038
|
-
-body {
|
1039
|
-
.wme configure -watermarkforeground
|
1040
|
-
} -cleanup cleanup \
|
1041
|
-
-result {-watermarkforeground watermarkForeground Foreground {light gray} {light gray}}
|
1042
|
-
|
1043
|
-
tcltest::test wme-cget-watermarkforeground {cget -watermarkforeground returns correct result} \
|
1044
|
-
-setup setup \
|
1045
|
-
-body {
|
1046
|
-
.wme cget -watermarkforeground
|
1047
|
-
} -cleanup cleanup \
|
1048
|
-
-result "light gray"
|
1049
|
-
|
1050
|
-
tcltest::test wme-configure-cget-watermarkforeground {configure/cget -watermarkforeground returns correct result} \
|
1051
|
-
-setup setup \
|
1052
|
-
-body {
|
1053
|
-
.wme configure -watermarkforeground orange
|
1054
|
-
.wme cget -watermarkforeground
|
1055
|
-
} -cleanup cleanup \
|
1056
|
-
-result orange
|
1057
|
-
|
1058
|
-
tcltest::test wme-watermark-color-check {check that the color is the watercolor when the watermark is present} \
|
1059
|
-
-setup setup \
|
1060
|
-
-body {
|
1061
|
-
.wme configure -watermark "Enter string" -watermarkforeground orange -foreground black
|
1062
|
-
.wme.e cget -foreground
|
1063
|
-
} -cleanup cleanup \
|
1064
|
-
-result orange
|
1065
|
-
|
1066
|
-
tcltest::test wme-watermark-removed-color-check {check that the color is the foreground color when the watermark is removed} \
|
1067
|
-
-setup setup \
|
1068
|
-
-body {
|
1069
|
-
.wme configure -watermark "Enter string" -watermarkforeground orange -foreground black
|
1070
|
-
.wme insert end "foobar"
|
1071
|
-
.wme.e cget -foreground
|
1072
|
-
} -cleanup cleanup \
|
1073
|
-
-result black
|
1074
|
-
|
1075
|
-
#---------------------------------
|
1076
|
-
tcltest::test wme-configure-width {configure -width returns correct result} \
|
1077
|
-
-setup {
|
1078
|
-
setup -width 40
|
1079
|
-
} -body {
|
1080
|
-
.wme configure -width
|
1081
|
-
} -cleanup cleanup \
|
1082
|
-
-match regexp \
|
1083
|
-
-result {-width width Width \d+ 40}
|
1084
|
-
|
1085
|
-
tcltest::test wme-cget-width {cget -width returns correct result} \
|
1086
|
-
-setup {
|
1087
|
-
setup -width 40
|
1088
|
-
} -body {
|
1089
|
-
.wme cget -width
|
1090
|
-
} -cleanup cleanup \
|
1091
|
-
-result 40
|
1092
|
-
|
1093
|
-
tcltest::test wme-configure-cget-width {configure/cget -width returns correct result} \
|
1094
|
-
-setup setup \
|
1095
|
-
-body {
|
1096
|
-
.wme configure -width 50
|
1097
|
-
.wme cget -width
|
1098
|
-
} -cleanup cleanup \
|
1099
|
-
-result 50
|
1100
|
-
|
1101
|
-
#---------------------------------
|
1102
|
-
tcltest::test wme-configure-xscrollcommand {configure -xscrollcommand returns correct result} \
|
1103
|
-
-setup setup \
|
1104
|
-
-body {
|
1105
|
-
.wme configure -xscrollcommand
|
1106
|
-
} -cleanup cleanup \
|
1107
|
-
-result {-xscrollcommand xScrollCommand ScrollCommand {} {}}
|
1108
|
-
|
1109
|
-
tcltest::test wme-cget-xscrollcommand {cget -xscrollcommand returns correct result} \
|
1110
|
-
-setup setup \
|
1111
|
-
-body {
|
1112
|
-
.wme cget -xscrollcommand
|
1113
|
-
} -cleanup cleanup \
|
1114
|
-
-result ""
|
1115
|
-
|
1116
|
-
tcltest::test wme-configure-cget-xscrollcommand {configure/cget -xscrollcommand returns correct result} \
|
1117
|
-
-setup setup \
|
1118
|
-
-body {
|
1119
|
-
.wme configure -xscrollcommand "foobar"
|
1120
|
-
.wme cget -xscrollcommand
|
1121
|
-
} -cleanup cleanup \
|
1122
|
-
-result "foobar"
|
1123
|
-
|
1124
|
-
#---------------------------------
|
1125
|
-
tcltest::test wme-bbox-0 {bbox returns correct result} \
|
1126
|
-
-setup setup \
|
1127
|
-
-body {
|
1128
|
-
.wme insert end "foobar"
|
1129
|
-
.wme bbox 0
|
1130
|
-
} -cleanup cleanup \
|
1131
|
-
-match regexp \
|
1132
|
-
-result {\d+ -\d+ \d+ \d+}
|
1133
|
-
|
1134
|
-
#---------------------------------
|
1135
|
-
tcltest::test wme-delete-0 {delete returns correct result} \
|
1136
|
-
-setup setup \
|
1137
|
-
-body {
|
1138
|
-
.wme insert end "foobar"
|
1139
|
-
.wme delete 0
|
1140
|
-
.wme get
|
1141
|
-
} -cleanup cleanup \
|
1142
|
-
-result "oobar"
|
1143
|
-
|
1144
|
-
tcltest::test wme-delete-end {delete returns correct result} \
|
1145
|
-
-setup setup \
|
1146
|
-
-body {
|
1147
|
-
.wme insert end "foobar"
|
1148
|
-
.wme delete end
|
1149
|
-
.wme get
|
1150
|
-
} -cleanup cleanup \
|
1151
|
-
-result "foobar"
|
1152
|
-
|
1153
|
-
tcltest::test wme-delete-less {delete returns correct result} \
|
1154
|
-
-setup setup \
|
1155
|
-
-body {
|
1156
|
-
.wme insert end "foobar"
|
1157
|
-
.wme delete -1
|
1158
|
-
.wme get
|
1159
|
-
} -cleanup cleanup \
|
1160
|
-
-result "oobar"
|
1161
|
-
|
1162
|
-
tcltest::test wme-delete-more {delete returns correct result} \
|
1163
|
-
-setup setup \
|
1164
|
-
-body {
|
1165
|
-
.wme insert end "foobar"
|
1166
|
-
.wme delete 10
|
1167
|
-
.wme get
|
1168
|
-
} -cleanup cleanup \
|
1169
|
-
-result "foobar"
|
1170
|
-
|
1171
|
-
tcltest::test wme-delete-first-last {delete first/last returns correct result} \
|
1172
|
-
-setup setup \
|
1173
|
-
-body {
|
1174
|
-
.wme insert end "foobar"
|
1175
|
-
.wme delete 1 4
|
1176
|
-
.wme get
|
1177
|
-
} -cleanup cleanup \
|
1178
|
-
-result "far"
|
1179
|
-
|
1180
|
-
tcltest::test wme-delete-all {delete all returns correct result} \
|
1181
|
-
-setup setup \
|
1182
|
-
-body {
|
1183
|
-
.wme insert end "foobar"
|
1184
|
-
.wme delete 0 end
|
1185
|
-
.wme get
|
1186
|
-
} -cleanup cleanup \
|
1187
|
-
-result ""
|
1188
|
-
|
1189
|
-
tcltest::test wme-delete-watermark {delete returns correct result} \
|
1190
|
-
-setup setup \
|
1191
|
-
-body {
|
1192
|
-
.wme configure -watermark "Enter string"
|
1193
|
-
.wme delete 1 end
|
1194
|
-
.wme get
|
1195
|
-
} -cleanup cleanup \
|
1196
|
-
-result ""
|
1197
|
-
|
1198
|
-
tcltest::test wme-delete-watermark-all {delete returns correct result} \
|
1199
|
-
-setup setup \
|
1200
|
-
-body {
|
1201
|
-
.wme configure -watermark "Enter string"
|
1202
|
-
.wme delete 0 end
|
1203
|
-
.wme get
|
1204
|
-
} -cleanup cleanup \
|
1205
|
-
-result ""
|
1206
|
-
|
1207
|
-
#---------------------------------
|
1208
|
-
tcltest::test wme-get-empty {get returns correct result} \
|
1209
|
-
-setup setup \
|
1210
|
-
-body {
|
1211
|
-
.wme get
|
1212
|
-
} -cleanup cleanup \
|
1213
|
-
-result ""
|
1214
|
-
|
1215
|
-
tcltest::test wme-get-watermark-empty {get returns correct result} \
|
1216
|
-
-setup setup \
|
1217
|
-
-body {
|
1218
|
-
.wme configure -watermark "Enter string"
|
1219
|
-
.wme get
|
1220
|
-
} -cleanup cleanup \
|
1221
|
-
-result ""
|
1222
|
-
|
1223
|
-
tcltest::test wme-get {get returns correct result} \
|
1224
|
-
-setup setup \
|
1225
|
-
-body {
|
1226
|
-
.wme insert end "foobar"
|
1227
|
-
.wme get
|
1228
|
-
} -cleanup cleanup \
|
1229
|
-
-result "foobar"
|
1230
|
-
|
1231
|
-
tcltest::test wme-get-watermark {get returns correct result} \
|
1232
|
-
-setup setup \
|
1233
|
-
-body {
|
1234
|
-
.wme configure -watermark "Enter string"
|
1235
|
-
.wme insert end "foobar"
|
1236
|
-
.wme get
|
1237
|
-
} -cleanup cleanup \
|
1238
|
-
-result "foobar"
|
1239
|
-
|
1240
|
-
#---------------------------------
|
1241
|
-
tcltest::test wme-icursor-watermark-empty-1 {icursor returns correct result} \
|
1242
|
-
-setup setup \
|
1243
|
-
-body {
|
1244
|
-
.wme configure -watermark "Empty string"
|
1245
|
-
.wme icursor 1
|
1246
|
-
.wme index insert
|
1247
|
-
} -cleanup cleanup \
|
1248
|
-
-result 0
|
1249
|
-
|
1250
|
-
tcltest::test wme-icursor-watermark-empty-end {icursor returns correct result} \
|
1251
|
-
-setup setup \
|
1252
|
-
-body {
|
1253
|
-
.wme configure -watermark "Empty string"
|
1254
|
-
.wme icursor end
|
1255
|
-
.wme index insert
|
1256
|
-
} -cleanup cleanup \
|
1257
|
-
-result 0
|
1258
|
-
|
1259
|
-
tcltest::test wme-icursor-watermark-empty-less {icursor returns correct result} \
|
1260
|
-
-setup setup \
|
1261
|
-
-body {
|
1262
|
-
.wme configure -watermark "Empty string"
|
1263
|
-
.wme icursor -1
|
1264
|
-
.wme index insert
|
1265
|
-
} -cleanup cleanup \
|
1266
|
-
-result 0
|
1267
|
-
|
1268
|
-
tcltest::test wme-icursor-1 {icursor returns correct result} \
|
1269
|
-
-setup setup \
|
1270
|
-
-body {
|
1271
|
-
.wme insert end "foobar"
|
1272
|
-
.wme icursor 1
|
1273
|
-
.wme index insert
|
1274
|
-
} -cleanup cleanup \
|
1275
|
-
-result 1
|
1276
|
-
|
1277
|
-
tcltest::test wme-icursor-end {icursor returns correct result} \
|
1278
|
-
-setup setup \
|
1279
|
-
-body {
|
1280
|
-
.wme insert end "foobar"
|
1281
|
-
.wme icursor end
|
1282
|
-
.wme index insert
|
1283
|
-
} -cleanup cleanup \
|
1284
|
-
-result 6
|
1285
|
-
|
1286
|
-
tcltest::test wme-icursor-less {icursor returns correct result} \
|
1287
|
-
-setup setup \
|
1288
|
-
-body {
|
1289
|
-
.wme insert end "foobar"
|
1290
|
-
.wme icursor -1
|
1291
|
-
.wme index insert
|
1292
|
-
} -cleanup cleanup \
|
1293
|
-
-result 0
|
1294
|
-
|
1295
|
-
tcltest::test wme-icursor-more {icursor returns correct result} \
|
1296
|
-
-setup setup \
|
1297
|
-
-body {
|
1298
|
-
.wme insert end "foobar"
|
1299
|
-
.wme icursor 10
|
1300
|
-
.wme index insert
|
1301
|
-
} -cleanup cleanup \
|
1302
|
-
-result 6
|
1303
|
-
|
1304
|
-
#---------------------------------
|
1305
|
-
tcltest::test wme-index-1 {make sure the index of end is 0 when watermark is displayed} \
|
1306
|
-
-setup setup \
|
1307
|
-
-body {
|
1308
|
-
.wme configure -watermark "Enter string"
|
1309
|
-
.wme index end
|
1310
|
-
} -cleanup cleanup \
|
1311
|
-
-result 0
|
1312
|
-
|
1313
|
-
tcltest::test wme-index-2 {make sure the index is correct if the watermark is not displayed} \
|
1314
|
-
-setup setup \
|
1315
|
-
-body {
|
1316
|
-
.wme configure -watermark "Enter string"
|
1317
|
-
.wme insert end "foobar"
|
1318
|
-
.wme index end
|
1319
|
-
} -cleanup cleanup \
|
1320
|
-
-result 6
|
1321
|
-
|
1322
|
-
# Cleanup the tests
|
1323
|
-
tcltest::cleanupTests
|
1324
|
-
|
1325
|
-
|