TST: Add the initial window shape test back

This commit is contained in:
Eric Dill 2015-07-31 13:37:12 -04:00
parent f5aa792e7d
commit 26ee8d5aaa

View File

@ -97,6 +97,13 @@ def setup_function(function):
g = pg.GridItem()
vb.addItem(g)
win.resize(400, 400)
w = vb.geometry().width()
h = vb.geometry().height()
view1 = QRectF(0, 0, 10, 10)
size1 = QRectF(0, h, w, -h)
_assert_mapping(vb, view1, size1)
vb.setAspectLocked()
win.resize(800, 400)
app.processEvents()