Пример #1
0
 def test_insertwidth(self):
     widget = self.create()
     self.checkPixelsParam(widget, 'insertwidth', 1.3, 3.6, '10p')
     self.checkParam(widget, 'insertwidth', 0.1, expected=2)
     self.checkParam(widget, 'insertwidth', -2, expected=2)
     if pixels_round(0.9) <= 0:
         self.checkParam(widget, 'insertwidth', 0.9, expected=2)
     else:
         self.checkParam(widget, 'insertwidth', 0.9, expected=1)
Пример #2
0
 def test_insertwidth(self):
     widget = self.create()
     self.checkPixelsParam(widget, 'insertwidth', 1.3, 3.6, '10p')
     self.checkParam(widget, 'insertwidth', 0.1, expected=2)
     self.checkParam(widget, 'insertwidth', -2, expected=2)
     if pixels_round(0.9) <= 0:
         self.checkParam(widget, 'insertwidth', 0.9, expected=2)
     else:
         self.checkParam(widget, 'insertwidth', 0.9, expected=1)