diff options
author | J-P Nurmi <jpnurmi@qt.io> | 2017-07-20 16:40:30 +0200 |
---|---|---|
committer | J-P Nurmi <jpnurmi@qt.io> | 2017-07-21 07:05:24 +0000 |
commit | 52d675a684b88e564b1419d015fae74e32495c7b (patch) | |
tree | 0ab9acc113b7a9f57d49d65b91d0e509305d5bb2 /tests | |
parent | f37afc17cec205bb6b0833100ebb6a958b85e7b7 (diff) |
Fix tst_popup::test_size()
The same fix we applied to tst_tabbar::test_layout() earlier.
Change-Id: Id6d67aef66f01c14275c86dbd9ed0a7fa4244640
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/controls/data/tst_popup.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_popup.qml b/tests/auto/controls/data/tst_popup.qml index 296d026d..9da41da6 100644 --- a/tests/auto/controls/data/tst_popup.qml +++ b/tests/auto/controls/data/tst_popup.qml @@ -944,6 +944,10 @@ TestCase { compare(openedSpy.count, 1) verify(control.visible) + // remove the background so that it won't affect the implicit size of the popup, + // so the implicit sizes tested below are entirely based on the content size + control.background = null + // implicit size of the content control.contentItem.implicitWidth = 10 compare(control.implicitWidth, 10 + control.leftPadding + control.rightPadding) |