diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-20 14:02:42 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2020-08-20 14:02:42 (GMT) |
commit | 22a9bc4bd75e5479537768884f7ead683e5e51d9 (patch) | |
tree | 0fb2c216b44e767e897680b06cd4c0b8f7549b6c /tests | |
parent | 06b5ea26625d50fb3cf48c115b4efa0115f20d9e (diff) | |
download | tk-22a9bc4bd75e5479537768884f7ead683e5e51d9.zip tk-22a9bc4bd75e5479537768884f7ead683e5e51d9.tar.gz tk-22a9bc4bd75e5479537768884f7ead683e5e51d9.tar.bz2 |
One more use of TkNewIndexObj() macro. More code cleanup
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dialog.test | 2 | ||||
-rw-r--r-- | tests/font.test | 4 | ||||
-rw-r--r-- | tests/grab.test | 2 | ||||
-rw-r--r-- | tests/listbox.test | 4 | ||||
-rw-r--r-- | tests/menuDraw.test | 2 | ||||
-rw-r--r-- | tests/text.test | 2 | ||||
-rw-r--r-- | tests/textDisp.test | 4 | ||||
-rw-r--r-- | tests/ttk/spinbox.test | 2 |
8 files changed, 11 insertions, 11 deletions
diff --git a/tests/dialog.test b/tests/dialog.test index 3ca5146..692d928 100644 --- a/tests/dialog.test +++ b/tests/dialog.test @@ -60,7 +60,7 @@ test dialog-2.3 {tk_dialog operation} -body { return $res } -cleanup { destroy .b -} -result {-1} +} -result -1 cleanupTests return diff --git a/tests/font.test b/tests/font.test index aa7137a..28ac799 100644 --- a/tests/font.test +++ b/tests/font.test @@ -1681,14 +1681,14 @@ destroy .t.f pack [label .t.f] update test font-27.1 {Tk_UnderlineTextLayout procedure: no underline chosen} -body { - .t.f config -text "foo" -under -1 + .t.f config -text "foo" -underline -1 } -result {} test font-27.2 {Tk_UnderlineTextLayout procedure: underline not visible} -body { .t.f config -text "000 00000" -wrap [expr $ax*7] -under 10 } -result {} test font-27.3 {Tk_UnderlineTextLayout procedure: underline is visible} -body { .t.f config -text "000 00000" -wrap [expr $ax*7] -under 5 - .t.f config -wrap -1 -under -1 + .t.f config -wrap -1 -underline -1 } -result {} destroy .t.f diff --git a/tests/grab.test b/tests/grab.test index 653d756..0be5b61 100644 --- a/tests/grab.test +++ b/tests/grab.test @@ -107,7 +107,7 @@ test grab-2.1 {Tk_GrabObjCmd, grab status gives correct status} -body { grab status . } -cleanup { grab release . -} -result {none} +} -result none test grab-2.2 {Tk_GrabObjCmd, grab status gives correct status} -body { set curr [grab current .] if { [string length $curr] > 0 } { diff --git a/tests/listbox.test b/tests/listbox.test index 3520f99..9b667cd 100644 --- a/tests/listbox.test +++ b/tests/listbox.test @@ -718,7 +718,7 @@ test listbox-3.60 {ListboxWidgetCmd procedure, "index" option} -body { } -result 2 test listbox-3.61 {ListboxWidgetCmd procedure, "index" option} -body { .l index -1 -} -result {-1} +} -result -1 test listbox-3.62 {ListboxWidgetCmd procedure, "index" option} -body { .l index end } -result 18 @@ -2132,7 +2132,7 @@ test listbox-10.19 {GetListboxIndex procedure} -setup { .l index -1 } -cleanup { destroy .l -} -result -1 +} -result -1 test listbox-10.20 {GetListboxIndex procedure} -setup { destroy .l } -body { diff --git a/tests/menuDraw.test b/tests/menuDraw.test index 9382974..bf15f25 100644 --- a/tests/menuDraw.test +++ b/tests/menuDraw.test @@ -561,7 +561,7 @@ test menuDraw-15.2 {TkPostTearoffMenu - Deactivation} -setup { $tearoff index active } -cleanup { deleteWindows -} -result {none} +} -result none test menuDraw-15.3 {TkPostTearoffMenu - post command} -setup { deleteWindows } -body { diff --git a/tests/text.test b/tests/text.test index 4a5c1b3..1fbb9d8 100644 --- a/tests/text.test +++ b/tests/text.test @@ -2648,7 +2648,7 @@ test text-10.36 {TextWidgetCmd procedure, "count" option} -setup { .t count -lines 2.7 "1.0 lineend" } -cleanup { destroy .t -} -result {-1} +} -result -1 test text-10.37 {TextWidgetCmd procedure, "count" option} -setup { text .t } -body { diff --git a/tests/textDisp.test b/tests/textDisp.test index aeb1a70..4050823 100644 --- a/tests/textDisp.test +++ b/tests/textDisp.test @@ -1346,11 +1346,11 @@ test textDisp-9.10 {TkTextRedrawTag} { .t insert 1.0 "Line 1\nLine 2 is long enough to wrap\nLine 3 is also long enough to wrap\nLine 4" .t tag add big 1.0 2.0 updateText - set tk_textRedraw {none} + set tk_textRedraw none .t tag add big 1.3 1.5 updateText set tk_textRedraw -} {none} +} none test textDisp-9.11 {TkTextRedrawTag} { .t configure -wrap char .t delete 1.0 end diff --git a/tests/ttk/spinbox.test b/tests/ttk/spinbox.test index 4bdabee..b5a9ab5 100644 --- a/tests/ttk/spinbox.test +++ b/tests/ttk/spinbox.test @@ -126,7 +126,7 @@ test spinbox-1.8.2 "option -validate" -setup { .sb cget -validate } -cleanup { destroy .sb -} -result {none} +} -result none test spinbox-1.8.3 "option -validate" -setup { ttk::spinbox .sb -from 0 -to 100 |