Skip to content

Commit

Permalink
Test debug code
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Sep 23, 2020
1 parent 83525ab commit 2dc86db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/python/test_qgsmapcanvas.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,9 @@ def testLockedScale(self):
"""Test zoom/pan/center operations when scale lock is on"""

c = QgsMapCanvas()
self.assertEqual(c.size().width(), 640)
self.assertEqual(c.size().height(), 480)

c.setExtent(QgsRectangle(5, 45, 9, 47))
c.zoomScale(2500000)
c.setScaleLocked(True)
Expand Down

0 comments on commit 2dc86db

Please sign in to comment.