diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-10-26 03:07:24 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2019-10-26 03:07:24 +0200 |
commit | 9898744e2ea17e805da559faeb677c9f5bbe080f (patch) | |
tree | 36cb67cd6fa0e60d8bf9044ddd4623c5539b0baa /tests/auto/controls/data/tst_splitview.qml | |
parent | f5211d76cb92254af4a14d56599e5817f2368de8 (diff) | |
parent | b395f94ec3032b11eed5708acf4e72244ea728c2 (diff) |
Merge remote-tracking branch 'origin/5.13' into 5.14
Change-Id: I5da24592eb292ef4f430d734fec234166ce6e1e3
Diffstat (limited to 'tests/auto/controls/data/tst_splitview.qml')
-rw-r--r-- | tests/auto/controls/data/tst_splitview.qml | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/tests/auto/controls/data/tst_splitview.qml b/tests/auto/controls/data/tst_splitview.qml index a03c09a0..76572a00 100644 --- a/tests/auto/controls/data/tst_splitview.qml +++ b/tests/auto/controls/data/tst_splitview.qml @@ -149,23 +149,6 @@ TestCase { } } - SplitView { - id: dummyHorizontalSplitView - handle: handleComponent - - Item { objectName: "dummyItem" } - Item { objectName: "dummyItem" } - } - - SplitView { - id: dummyVerticalSplitView - orientation: Qt.Vertical - handle: handleComponent - - Item { objectName: "dummyItem" } - Item { objectName: "dummyItem" } - } - Component { id: splitViewComponent @@ -1958,4 +1941,20 @@ TestCase { mouseRelease(targetHandle, -100, targetHandle.height / 2, Qt.LeftButton) verify(!control.resizing) } + + Component { + id: oneItemComponent + + SplitView { + Item {} + } + } + + // QTBUG-79270 + function test_hideSplitViewWithOneItem() { + var control = createTemporaryObject(oneItemComponent, testCase) + verify(control) + // Shouldn't be an assertion failure. + control.visible = false + } } |