aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorLiang Qi <liang.qi@qt.io>2018-11-09 10:26:44 +0100
committerJani Heikkinen <jani.heikkinen@qt.io>2018-11-09 10:11:46 +0000
commit018df56aa6804908bcdf5c4f380c1fe9366ce324 (patch)
treeabab91f20895b83b49dee254ea7b7175f45193cc /tests/auto
parent936d31179d44220571ded15840bedeccb581c83b (diff)
QQuickPage: fix a typo to avoid a crash
when setting null to footer Fixes: QTBUG-71444 Change-Id: Id4b0a3fd7aa104357674b4e2be6206894f8878da Reviewed-by: J-P Nurmi <jpnurmi@gmail.com> Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/controls/data/tst_dialog.qml13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/auto/controls/data/tst_dialog.qml b/tests/auto/controls/data/tst_dialog.qml
index 22546083..1bfffc1d 100644
--- a/tests/auto/controls/data/tst_dialog.qml
+++ b/tests/auto/controls/data/tst_dialog.qml
@@ -67,6 +67,14 @@ TestCase {
}
Component {
+ id: qtbug71444
+ Dialog {
+ header: null
+ footer: null
+ }
+ }
+
+ Component {
id: buttonBox
DialogButtonBox { }
}
@@ -198,6 +206,11 @@ TestCase {
compare(rejectedSpy.count, 1)
}
+ function test_qtbug71444() {
+ var control = createTemporaryObject(qtbug71444, testCase)
+ verify(control)
+ }
+
function test_standardButtons() {
var control = createTemporaryObject(dialog, testCase)