diff options
author | jenglish <jenglish@flightlab.com> | 2008-08-19 14:48:00 (GMT) |
---|---|---|
committer | jenglish <jenglish@flightlab.com> | 2008-08-19 14:48:00 (GMT) |
commit | 8e04a7f82f31ef347a39c58d53f4b3d3d52dc323 (patch) | |
tree | b7d2b9b4dea24ec9eac88253408fb5ff88e1fa11 /tests/ttk/entry.test | |
parent | c1764107397069155a945b26c24fd27025fd692d (diff) | |
download | tk-8e04a7f82f31ef347a39c58d53f4b3d3d52dc323.zip tk-8e04a7f82f31ef347a39c58d53f4b3d3d52dc323.tar.gz tk-8e04a7f82f31ef347a39c58d53f4b3d3d52dc323.tar.bz2 |
generic/ttk/ttkScroll.c: Don't use sprintf "%g" to format floating
point numbers in -[xy]scrollcommand callbacks or [xy]view methods.
Minor incompatibility: 0 and 1 now formatted as "0.0" resp "1.0".
Diffstat (limited to 'tests/ttk/entry.test')
-rw-r--r-- | tests/ttk/entry.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ttk/entry.test b/tests/ttk/entry.test index 929e856..0c2f0be 100644 --- a/tests/ttk/entry.test +++ b/tests/ttk/entry.test @@ -79,7 +79,7 @@ test entry-2.2 "Initial scroll position" -body { .e insert end "0123456789" pack .e; update set scrollInfo -} -result {0 0.5} -cleanup { destroy .e } +} -result {0.0 0.5} -cleanup { destroy .e } # NOTE: result can vary depending on font. # Bounding box / scrolling tests. @@ -105,7 +105,7 @@ test entry-3.2 "xview" -body { .e insert end [string repeat "0" 40] update idletasks set result [.e xview] -} -result {0 0.5} +} -result {0.0 0.5} test entry-3.last "Series 3 cleanup" -body { destroy .e |