Skip to content
Permalink
Browse files

Update test

  • Loading branch information
nyalldawson committed Sep 13, 2018
1 parent 5aafbf4 commit e4fc4206f4b8adb44b326cb54fbc63ed41497158
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/src/python/test_qgsstylemodel.py
@@ -752,9 +752,8 @@ def testIconSize(self):
model.addDesiredIconSize(QSize(100, 90))
model.addDesiredIconSize(QSize(200, 180))
icon = model.data(model.index(i, 0), Qt.DecorationRole)
self.assertEqual(icon.availableSizes(), [QSize(24, 24), QSize(100, 90), QSize(200, 180)])
self.assertEqual(icon.actualSize(QSize(10, 10)), QSize(10, 10))
self.assertEqual(icon.actualSize(QSize(24, 24)), QSize(24, 24))
self.assertEqual(icon.availableSizes(), [QSize(100, 90), QSize(200, 180)])
self.assertEqual(icon.actualSize(QSize(24, 24)), QSize(24, 21))
self.assertEqual(icon.actualSize(QSize(25, 25)), QSize(25, 22))
self.assertEqual(icon.actualSize(QSize(90, 90)), QSize(90, 81))
self.assertEqual(icon.actualSize(QSize(125, 125)), QSize(125, 112))

0 comments on commit e4fc420

Please sign in to comment.
You can’t perform that action at this time.