From 26ee8d5aaaffc3656bb398e5a58ed2d4c343b6e1 Mon Sep 17 00:00:00 2001 From: Eric Dill Date: Fri, 31 Jul 2015 13:37:12 -0400 Subject: [PATCH] TST: Add the initial window shape test back --- pyqtgraph/graphicsItems/ViewBox/tests/test_ViewBox.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pyqtgraph/graphicsItems/ViewBox/tests/test_ViewBox.py b/pyqtgraph/graphicsItems/ViewBox/tests/test_ViewBox.py index 3f1e4539..65522278 100644 --- a/pyqtgraph/graphicsItems/ViewBox/tests/test_ViewBox.py +++ b/pyqtgraph/graphicsItems/ViewBox/tests/test_ViewBox.py @@ -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()