diff options
author | Daniel d'Andrada <daniel.dandrada@luxoft.com> | 2018-12-10 09:55:54 +0100 |
---|---|---|
committer | Robert Griebl <robert.griebl@pelagicore.com> | 2018-12-11 10:34:52 +0000 |
commit | 322f7eace9fa7457cad3e5fd5bb5032c4abfca95 (patch) | |
tree | 5e21f2e207394b504750f4436aa6cf4f106523ac /tests/qml/windowitem | |
parent | 05a3bb55ce78d785a77bc8c8aaab2fd82b0bc0b5 (diff) | |
download | qtapplicationmanager-322f7eace9fa7457cad3e5fd5bb5032c4abfca95.tar.gz |
Keep windowProperties when there's no surface anymore
Fixes: AUTOSUITE-694
Change-Id: Ibfbf701fd281d5a5017a8eed4d8e0d9f292ea3b4
Reviewed-by: Robert Griebl <robert.griebl@pelagicore.com>
Diffstat (limited to 'tests/qml/windowitem')
-rw-r--r-- | tests/qml/windowitem/tst_windowitem.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/qml/windowitem/tst_windowitem.qml b/tests/qml/windowitem/tst_windowitem.qml index c388e11e..a90fa1f0 100644 --- a/tests/qml/windowitem/tst_windowitem.qml +++ b/tests/qml/windowitem/tst_windowitem.qml @@ -469,5 +469,23 @@ Item { compare(window.windowProperty("clickCount"), 1); } + + // Checks that window properties are kept even when contentState is WindowObject.NoSurface + // Regression test for https://bugreports.qt.io/browse/AUTOSUITE-694 + function test_window_keep_properties_when_nosurface() { + initWindowItemsModel(); + + var window = windowItemsModel.get(0).window; + + compare(window.contentState, WindowObject.SurfaceWithContent); + + window.setWindowProperty("foo", "bar"); + compare(window.windowProperty("foo"), "bar"); + + app.stop(); + + tryCompare(window, "contentState", WindowObject.NoSurface); + compare(window.windowProperty("foo"), "bar"); + } } } |