on xenial help sign in
fix + make test les strict
commit384c7f3a943e444267bf6253e50660657fb9bbcf authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 24 Mar 2016, 15:38 (11 years ago) parent87998f0
2 files changed+2−2
qml/Tutorial/TutorialBottom.qml+1−1 tests/qmltests/Tutorial/tst_Tutorial.qml+1−1
qml/Tutorial/TutorialBottom.qml+1−1
@@ -51,7 +51,7 @@ TutorialPage {
5151 readonly property real dragAreaHeight: units.gu(3) // based on PageWithBottomEdge.qml
5252 readonly property real targetDistance: height * 0.2 + dragAreaHeight // based on PageWithBottomEdge.qml
5353
54− opacityOverride: dragArea.dragging ? 1 - (-dragArea.distance / targetDistance) : 1
54+ opacityOverride: dragArea.dragging ? 1 - (dragArea.distance / targetDistance) : 1
5555
5656 mouseArea {
5757 anchors.bottomMargin: root.dragAreaHeight
tests/qmltests/Tutorial/tst_Tutorial.qml+1−1
@@ -469,7 +469,7 @@ Rectangle {
469469 // compare opacity with a bound rather than hard 0.6 because progress doesn't
470470 // always match the drag perfectly (takes a moment for drag to kick in)
471471 tryCompareFunction(function() {
472− return tutorialTop.opacity >= 0.6 && tutorialTop.opacity < 0.7;
472+ return tutorialTop.opacity >= 0.5 && tutorialTop.opacity < 0.7;
473473 }, true);
474474 touchFlick(shell, halfWidth, 0, halfWidth, shell.height * 0.4, false, true);
475475