Skip to content

Commit 1dd2ddf

Browse files
committed
ttk/toggleswitch.test: bring test file initialization in accordance
1 parent 0449a35 commit 1dd2ddf

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/ttk/toggleswitch.test

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,16 @@
88

99
package require tcltest 2.2; # needed for "-singleproc 0"
1010

11-
# Load the main script "main.tcl", which takes care of:
11+
# Load the main script main.tcl, which takes care of:
1212
# - setup for the application and the root window
13-
# - loading and configuration of the tcltest test harness
14-
# - loading of the testutils mechanism together with its utility procs
13+
# - importing commands from the tcltest namespace
14+
# - loading of the testutils mechanism along with its utility procs
1515
# - loading of Tk specific test constraints (additionally to constraints
1616
# provided by the package tcltest)
17-
tcltest::loadTestedCommands
17+
source [file join [file dirname [tcltest::configure -testdir]] main.tcl]
18+
19+
# Ensure a pristine initial window state
20+
resetWindows
1821

1922
#
2023
# TESTS

0 commit comments

Comments
 (0)