bpo-34189: Add simple tests for new Tk widget options. (GH-8396) · python/cpython@e271ca7 (original) (raw)
`@@ -703,7 +703,7 @@ class ListboxTest(AbstractWidgetTest, unittest.TestCase):
`
703
703
`'disabledforeground', 'exportselection',
`
704
704
`'font', 'foreground', 'height',
`
705
705
`'highlightbackground', 'highlightcolor', 'highlightthickness',
`
706
``
`-
'listvariable', 'relief',
`
``
706
`+
'justify', 'listvariable', 'relief',
`
707
707
`'selectbackground', 'selectborderwidth', 'selectforeground',
`
708
708
`'selectmode', 'setgrid', 'state',
`
709
709
`'takefocus', 'width', 'xscrollcommand', 'yscrollcommand',
`
`@@ -717,6 +717,10 @@ def test_activestyle(self):
`
717
717
`self.checkEnumParam(widget, 'activestyle',
`
718
718
`'dotbox', 'none', 'underline')
`
719
719
``
``
720
`+
@requires_tcl(8, 6, 5)
`
``
721
`+
def test_justify(self):
`
``
722
`+
AbstractWidgetTest.test_justify(self)
`
``
723
+
720
724
`def test_listvariable(self):
`
721
725
`widget = self.create()
`
722
726
`var = tkinter.DoubleVar(self.root)
`
`@@ -951,7 +955,9 @@ class PanedWindowTest(AbstractWidgetTest, unittest.TestCase):
`
951
955
`OPTIONS = (
`
952
956
`'background', 'borderwidth', 'cursor',
`
953
957
`'handlepad', 'handlesize', 'height',
`
954
``
`-
'opaqueresize', 'orient', 'relief',
`
``
958
`+
'opaqueresize', 'orient',
`
``
959
`+
'proxybackground', 'proxyborderwidth', 'proxyrelief',
`
``
960
`+
'relief',
`
955
961
`'sashcursor', 'sashpad', 'sashrelief', 'sashwidth',
`
956
962
`'showhandle', 'width',
`
957
963
` )
`
`@@ -978,6 +984,23 @@ def test_opaqueresize(self):
`
978
984
`widget = self.create()
`
979
985
`self.checkBooleanParam(widget, 'opaqueresize')
`
980
986
``
``
987
`+
@requires_tcl(8, 6, 5)
`
``
988
`+
def test_proxybackground(self):
`
``
989
`+
widget = self.create()
`
``
990
`+
self.checkColorParam(widget, 'proxybackground')
`
``
991
+
``
992
`+
@requires_tcl(8, 6, 5)
`
``
993
`+
def test_proxyborderwidth(self):
`
``
994
`+
widget = self.create()
`
``
995
`+
self.checkPixelsParam(widget, 'proxyborderwidth',
`
``
996
`+
0, 1.3, 2.9, 6, -2, '10p',
`
``
997
`+
conv=noconv)
`
``
998
+
``
999
`+
@requires_tcl(8, 6, 5)
`
``
1000
`+
def test_proxyrelief(self):
`
``
1001
`+
widget = self.create()
`
``
1002
`+
self.checkReliefParam(widget, 'proxyrelief')
`
``
1003
+
981
1004
`def test_sashcursor(self):
`
982
1005
`widget = self.create()
`
983
1006
`self.checkCursorParam(widget, 'sashcursor')
`