summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorfvogel <fvogelnew1@free.fr>2015-12-09 19:27:17 (GMT)
committerfvogel <fvogelnew1@free.fr>2015-12-09 19:27:17 (GMT)
commite6a82e18a1f52de96da71d0b31a1bb3f46ed7ba1 (patch)
treefbc900ee939ea3cecb56876665c261eb848c4284 /tests
parentbba041fbdedf7358083ff0f2cc618a4990696bd0 (diff)
parente82200cb0ca4389ea75f8ae0c2096358a985c14e (diff)
downloadtk-e6a82e18a1f52de96da71d0b31a1bb3f46ed7ba1.zip
tk-e6a82e18a1f52de96da71d0b31a1bb3f46ed7ba1.tar.gz
tk-e6a82e18a1f52de96da71d0b31a1bb3f46ed7ba1.tar.bz2
Merged core-8-5-branch
Diffstat (limited to 'tests')
-rw-r--r--tests/bevel.tcl39
1 files changed, 30 insertions, 9 deletions
diff --git a/tests/bevel.tcl b/tests/bevel.tcl
index 950b714..531def0 100644
--- a/tests/bevel.tcl
+++ b/tests/bevel.tcl
@@ -42,6 +42,7 @@ significance:
r - should appear raised
u - should appear raised and also slightly offset vertically
s - should appear sunken
+S - should appear solid
n - preceding relief should extend right to end of line.
* - should appear "normal"
x - extra long lines to allow horizontal scrolling.
@@ -125,15 +126,35 @@ foreach i {1 2 3} {
.t.t insert end *****
.t.t insert end rrr r1
+font configure TkFixedFont -size 20
+.t.t tag configure sol100 -relief solid -borderwidth 100 \
+ -foreground red -font TkFixedFont
+.t.t tag configure sol12 -relief solid -borderwidth 12 \
+ -foreground red -font TkFixedFont
+.t.t tag configure big -font TkFixedFont
+set ind [.t.t index end]
+
+.t.t insert end "\n\nBorders do not leak on the neighbour chars"
+.t.t insert end "\nOnly \"S\" is on dark background"
+.t.t insert end {
+ xxx
+ x} {} S sol100 {x
+ xxx}
+
+.t.t insert end "\n\nA very thick border grows toward the inside of the tagged area only"
+.t.t insert end "\nOnly \"S\" is on dark background"
+.t.t insert end {
+ xxxx} {} SSSSS sol100 {xxxx
+ x} {} SSSSSSSSSSSSSSSSSS sol100 {x
+ xxx} {} SSSSSSSSS sol100 xxxx {}
+}
+.t.t insert end "\n\nA thinner border is continuous"
+.t.t insert end {
+ xxxx} {} SSSSS sol12 {xxxx
+ x} {} SSSSSSSSSSSSSSSSSS sol12 {x
+ xxx} {} SSSSSSSSS sol12 xxxx {}
+}
-
-
-
-
-
-
-
-
-
+.t.t tag add big $ind end