Skip to content

Commit b062214

Browse files
committed
fontchooser.test, winDialog.test: don't qualify namespace for variables imported from testutils.tcl using "upvar".
1 parent aaf6897 commit b062214

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/fontchooser.test

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ upvar #0 ::tk::test::dialog::testDialog testDialog
1212
set applyFontCmd [list testDialogFont set]
1313

1414
proc Click {button} {
15-
upvar #0 ::tk::test::dialog::testDialog testDialog
15+
upvar #0 testDialog testDialog
1616
switch -exact -- $button {
1717
ok { $testDialog.ok invoke }
1818
cancel { $testDialog.cancel invoke }

tests/winDialog.test

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ testConstraint english [expr {
3232
set initialDir [tcltest::temporaryDirectory]
3333

3434
proc Click {button} {
35-
upvar #0 ::tk::test::dialog::testDialog testDialog
35+
upvar #0 testDialog testDialog
3636
switch -exact -- $button {
3737
ok { set button 1 }
3838
cancel { set button 2 }
@@ -42,7 +42,7 @@ proc Click {button} {
4242
}
4343

4444
proc GetText {id} {
45-
upvar #0 ::tk::test::dialog::testDialog testDialog
45+
upvar #0 testDialog testDialog
4646
switch -exact -- $id {
4747
ok { set id 1 }
4848
cancel { set id 2 }
@@ -51,7 +51,7 @@ proc GetText {id} {
5151
}
5252

5353
proc SetText {id text} {
54-
upvar #0 ::tk::test::dialog::testDialog testDialog
54+
upvar #0 testDialog testDialog
5555
return [testwinevent $testDialog $id WM_SETTEXT $text]
5656
}
5757

0 commit comments

Comments
 (0)