Skip to content

Commit

Permalink
Astyle
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jul 25, 2017
1 parent e444f00 commit 0bffff0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tests/src/python/test_qgslayoutpagecollection.py
Expand Up @@ -203,16 +203,16 @@ def testReflow(self):
l = QgsLayout(p)
collection = l.pageCollection()

#add a page
# add a page
page = QgsLayoutItemPage(l)
page.setPageSize('A4')
collection.addPage(page)

#should be positioned at origin
# should be positioned at origin
self.assertEqual(page.pos().x(), 0)
self.assertEqual(page.pos().y(), 0)

#second page
# second page
page2 = QgsLayoutItemPage(l)
page2.setPageSize('A5')
collection.addPage(page2)
Expand All @@ -222,7 +222,7 @@ def testReflow(self):
self.assertEqual(page2.pos().x(), 0)
self.assertEqual(page2.pos().y(), 307)

#third page, slotted in middle
# third page, slotted in middle
page3 = QgsLayoutItemPage(l)
page3.setPageSize('A3')
collection.insertPage(page3, 1)
Expand Down Expand Up @@ -373,5 +373,6 @@ def testPageAtPoint(self):
self.assertEqual(collection.pageAtPoint(QPointF(10, 500)), page2)
self.assertFalse(collection.pageAtPoint(QPointF(10, 600)))


if __name__ == '__main__':
unittest.main()

0 comments on commit 0bffff0

Please sign in to comment.