Skip to content
Permalink
Browse files

Astyle

  • Loading branch information
nyalldawson committed Jul 25, 2017
1 parent e444f00 commit 0bffff05b35564a887cc3bdf113f7ac36ddeacd5
Showing with 5 additions and 4 deletions.
  1. +5 −4 tests/src/python/test_qgslayoutpagecollection.py
@@ -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)
@@ -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)
@@ -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.
You can’t perform that action at this time.