summaryrefslogtreecommitdiffstats
path: root/tests/option.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-11 10:18:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-11-11 10:18:08 (GMT)
commit8257004eff7efcb4440402734dfd667354f89932 (patch)
treedf51f468ddbcf96fddcb360128744946c1a034f2 /tests/option.test
parent61d2c57eee979c573c77480573181f5e4c862109 (diff)
parentf9b06d175f3ce097921a88bd64bbcf6dba8ac78e (diff)
downloadtk-8257004eff7efcb4440402734dfd667354f89932.zip
tk-8257004eff7efcb4440402734dfd667354f89932.tar.gz
tk-8257004eff7efcb4440402734dfd667354f89932.tar.bz2
Fix [0aa5e852dc]: Accept newline characters as value in Tk option files
Diffstat (limited to 'tests/option.test')
-rw-r--r--tests/option.test9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/option.test b/tests/option.test
index 66df70c..23866d7 100644
--- a/tests/option.test
+++ b/tests/option.test
@@ -384,15 +384,18 @@ test option-15.6 {database files} -body {
option get . x6 color
} -result {}
test option-15.7 {database files} -body {
+ option read $option1
+ option get . x9 color
+} -result " \t\\A\n"
+test option-15.8 {database files} -body {
option read $option1 widget foo
} -returnCodes error -result {wrong # args: should be "option readfile fileName ?priority?"}
-
-test option-15.8 {database files} -body {
+test option-15.9 {database files} -body {
option add *x3 burgundy
catch {option read $option1 userDefault}
option get . x3 color
} -result burgundy
-test option-15.9 {database files} -body {
+test option-15.10 {database files} -body {
set option2 [file join [testsDirectory] option.file2]
option read $option2
} -returnCodes error -result {missing colon on line 2}