Skip to content
This repository was archived by the owner on Nov 4, 2023. It is now read-only.

Commit 08736fb

Browse files
committed
Fixes for tests
1 parent efb8366 commit 08736fb

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

qml/OrientedShell.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ Item {
265265

266266
Item {
267267
id: shellContainer
268+
objectName: "shellContainer"
268269
anchors.fill: parent
269270
anchors.topMargin: !unity8Settings.disableTopMargin ? deviceConfiguration.topMargin : 0
270271

tests/qmltests/tst_OrientedShell.qml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1727,9 +1727,10 @@ Rectangle {
17271727
* topMargin is specified for the notch.
17281728
*/
17291729
var orientedShell = loadShell("has-notch");
1730+
var shellContainer = findChild(orientedShell, "shellContainer");
17301731
GSettingsController.setDisableTopMargin(data.disabled);
17311732

1732-
tryCompare(orientedShell.anchors, "topMargin", data.expectedMargin);
1733+
tryCompare(shellContainer.anchors, "topMargin", data.expectedMargin);
17331734
}
17341735
}
17351736
}

0 commit comments

Comments
 (0)