@@ -102,7 +102,7 @@ class FrameTest(AbstractToplevelTest, unittest.TestCase):
102102 'background' , 'borderwidth' ,
103103 'class' , 'colormap' , 'container' , 'cursor' , 'height' ,
104104 'highlightbackground' , 'highlightcolor' , 'highlightthickness' ,
105- 'relief' , 'takefocus' , 'visual' , 'width' ,
105+ 'padx' , 'pady' , ' relief' , 'takefocus' , 'visual' , 'width' ,
106106 )
107107
108108 def create (self , ** kwargs ):
@@ -636,7 +636,7 @@ class CanvasTest(AbstractWidgetTest, unittest.TestCase):
636636 'highlightbackground' , 'highlightcolor' , 'highlightthickness' ,
637637 'insertbackground' , 'insertborderwidth' ,
638638 'insertofftime' , 'insertontime' , 'insertwidth' ,
639- 'relief' , 'scrollregion' ,
639+ 'offset' , ' relief' , 'scrollregion' ,
640640 'selectbackground' , 'selectborderwidth' , 'selectforeground' ,
641641 'state' , 'takefocus' ,
642642 'xscrollcommand' , 'xscrollincrement' ,
@@ -658,6 +658,15 @@ def test_confine(self):
658658 widget = self .create ()
659659 self .checkBooleanParam (widget , 'confine' )
660660
661+ def test_offset (self ):
662+ widget = self .create ()
663+ self .assertEqual (widget ['offset' ], '0,0' )
664+ self .checkParams (widget , 'offset' ,
665+ 'n' , 'ne' , 'e' , 'se' , 's' , 'sw' , 'w' , 'nw' , 'center' )
666+ self .checkParam (widget , 'offset' , '10,20' )
667+ self .checkParam (widget , 'offset' , '#5,6' )
668+ self .checkInvalidParam (widget , 'offset' , 'spam' )
669+
661670 def test_scrollregion (self ):
662671 widget = self .create ()
663672 self .checkParam (widget , 'scrollregion' , '0 0 200 150' )
0 commit comments