summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-29 12:03:43 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-09-29 12:03:43 (GMT)
commit3bca7a22ca1dff514ae34de1506efc170620e0f0 (patch)
treea7130678e7d225c7e0c128f344c6f24f961b670d /tests
parenta17940858b04468beb718a5114bcdf8056b4b8f0 (diff)
parent22a93049efcb472b432f33af5567c150eef0855c (diff)
downloadtk-3bca7a22ca1dff514ae34de1506efc170620e0f0.zip
tk-3bca7a22ca1dff514ae34de1506efc170620e0f0.tar.gz
tk-3bca7a22ca1dff514ae34de1506efc170620e0f0.tar.bz2
Fix [6c0d7aec6713ab6a7c3e12dff7f26bff4679bc9d|6c0d7aec67]: unicode text input Windows 8. Added some test-cases using the "font actual" command.
Diffstat (limited to 'tests')
-rw-r--r--tests/entry.test5
-rw-r--r--tests/font.test12
2 files changed, 17 insertions, 0 deletions
diff --git a/tests/entry.test b/tests/entry.test
index d27ffb5..1be1d2d 100644
--- a/tests/entry.test
+++ b/tests/entry.test
@@ -2920,6 +2920,11 @@ test entry-16.4 {EntryVisibleRange procedure} -body {
} -cleanup {
destroy .e
} -result {0.000000 1.000000}
+test entry-16.5 {Unicode handling in entry widget} -body {
+ entry .e -show abc
+} -cleanup {
+ destroy .e
+} -result {0.000000 1.000000}
test entry-17.1 {EntryUpdateScrollbar procedure} -body {
diff --git a/tests/font.test b/tests/font.test
index 9e44a93..23e09c4 100644
--- a/tests/font.test
+++ b/tests/font.test
@@ -145,6 +145,18 @@ test font-4.10 {font command: actual} -constraints win -body {
test font-4.11 {font command: bad option} -body {
font actual xyz -style
} -returnCodes error -result {bad option "-style": must be -family, -size, -weight, -slant, -underline, or -overstrike}
+test font-4.12 {font command: actual} -body {
+ font actual {-family times} -- \ud800
+} -match glob -result {*}
+test font-4.13 {font command: actual} -body {
+ font actual {-family times} -- \udc00
+} -match glob -result {*}
+test font-4.14 {font command: actual} -constraints win -body {
+ font actual {-family times} -family -- \ud800\udc00
+} -result {Times New Roman}
+test font-4.15 {font command: actual} -body {
+ font actual {-family times} -- \udc00\ud800
+} -returnCodes 1 -match glob -result {expected a single character but got "*"}
test font-5.1 {font command: configure} -body {