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

Commit

Permalink
Fixes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
capsia37 committed Aug 5, 2021
1 parent bb9bc8d commit fda2d40
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions qml/OrientedShell.qml
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ Item {

Item {
id: shellContainer
objectName: "shellContainer"
anchors.fill: parent
anchors.topMargin: !unity8Settings.disableTopMargin ? deviceConfiguration.topMargin : 0

Expand Down
3 changes: 2 additions & 1 deletion tests/qmltests/tst_OrientedShell.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}

0 comments on commit fda2d40

Please sign in to comment.