aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qquickpopup/tst_qquickpopup.cpp
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-08-11 10:34:42 +0200
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-08-11 11:23:18 +0200
commit341ace84485ffb3c2f05818e1b95604849217c9a (patch)
tree353b270ed4e60be6cf3881bdb396dd8038d02870 /tests/auto/qquickpopup/tst_qquickpopup.cpp
parent82b64b8bec92212b90ee0987511179e14e1da071 (diff)
parentc472c2d1128962e12d0528ae6f9fa43cc6a7f147 (diff)
Merge "Merge remote-tracking branch 'origin/dev' into wip/qt6"
Diffstat (limited to 'tests/auto/qquickpopup/tst_qquickpopup.cpp')
-rw-r--r--tests/auto/qquickpopup/tst_qquickpopup.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/auto/qquickpopup/tst_qquickpopup.cpp b/tests/auto/qquickpopup/tst_qquickpopup.cpp
index 81b2d583..c2f876b8 100644
--- a/tests/auto/qquickpopup/tst_qquickpopup.cpp
+++ b/tests/auto/qquickpopup/tst_qquickpopup.cpp
@@ -88,6 +88,7 @@ private slots:
void qquickview();
void disabledPalette();
void disabledParentPalette();
+ void countChanged();
};
void tst_QQuickPopup::initTestCase()
@@ -1171,6 +1172,21 @@ void tst_QQuickPopup::disabledParentPalette()
QTRY_VERIFY(!popup->isVisible());
}
+void tst_QQuickPopup::countChanged()
+{
+ QQuickApplicationHelper helper(this, "countChanged.qml");
+
+ QQuickWindow *window = helper.window;
+ window->show();
+ QVERIFY(QTest::qWaitForWindowActive(window));
+
+ QQuickComboBox *comboBox = window->property("comboBox").value<QQuickComboBox*>();
+ QVERIFY(comboBox);
+ QCOMPARE(window->property("count").toInt(), 1);
+
+ QVERIFY(window->setProperty("isModel1", false));
+ QTRY_COMPARE(window->property("count").toInt(), 2);
+}
QTEST_QUICKCONTROLS_MAIN(tst_QQuickPopup)
#include "tst_qquickpopup.moc"