From fda2d40516071cf7758e02194121c4f26bf7efa1 Mon Sep 17 00:00:00 2001 From: Capsia Date: Tue, 3 Aug 2021 13:09:02 +0200 Subject: [PATCH] Fixes for tests --- qml/OrientedShell.qml | 1 + tests/qmltests/tst_OrientedShell.qml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/qml/OrientedShell.qml b/qml/OrientedShell.qml index 5a3404047..bb6228931 100644 --- a/qml/OrientedShell.qml +++ b/qml/OrientedShell.qml @@ -265,6 +265,7 @@ Item { Item { id: shellContainer + objectName: "shellContainer" anchors.fill: parent anchors.topMargin: !unity8Settings.disableTopMargin ? deviceConfiguration.topMargin : 0 diff --git a/tests/qmltests/tst_OrientedShell.qml b/tests/qmltests/tst_OrientedShell.qml index 716141f7c..7b9136661 100644 --- a/tests/qmltests/tst_OrientedShell.qml +++ b/tests/qmltests/tst_OrientedShell.qml @@ -1727,9 +1727,10 @@ Rectangle { * topMargin is specified for the notch. */ var orientedShell = loadShell("has-notch"); + var shellContainer = findChild(orientedShell, "shellContainer"); GSettingsController.setDisableTopMargin(data.disabled); - tryCompare(orientedShell.anchors, "topMargin", data.expectedMargin); + tryCompare(shellContainer.anchors, "topMargin", data.expectedMargin); } } }