on xenial help sign in
Remove edgeBarrierControls where they are useless

Both the phone and tablet stages use DragAreas rather than EdgeBarriers now. There is no EdgeBarrier to push on, and these controls couldn't find their target, which caused the five-second timeout to be reached. Saves 10 seconds of testing time.

commit5dc5593120573513109345d4cd29acee87c1bcc0 authorDalton Durst <dalton@ubports.com> dateFri 13 Dec 2019, 22:39 (7 years ago) parentb0f054c
2 files changed−19
tests/qmltests/Stage/tst_PhoneStage.qml−9 tests/qmltests/Stage/tst_TabletStage.qml−10
tests/qmltests/Stage/tst_PhoneStage.qml−9
@@ -77,15 +77,6 @@ Item {
7777 Column {
7878 anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
7979 spacing: units.gu(1)
80− EdgeBarrierControls {
81− id: edgeBarrierControls
82− text: "Drag here to pull out spread"
83− backgroundColor: "blue"
84− onDragged: { stage.pushRightEdge(amount); }
85− Component.onCompleted: {
86− edgeBarrierControls.target = testCase.findChild(stage, "edgeBarrierController");
87− }
88− }
8980 Repeater {
9081 model: ApplicationManager.availableApplications
9182 ApplicationCheckBox { appId: modelData }
tests/qmltests/Stage/tst_TabletStage.qml−10
@@ -85,16 +85,6 @@ Rectangle {
8585 anchors { left: parent.left; right: parent.right; top: parent.top; margins: units.gu(1) }
8686 spacing: units.gu(1)
8787
88− EdgeBarrierControls {
89− id: edgeBarrierControls
90− text: "Drag here to pull out spread"
91− backgroundColor: "blue"
92− onDragged: { stage.pushRightEdge(amount); }
93− Component.onCompleted: {
94− edgeBarrierControls.target = testCase.findChild(stage, "edgeBarrierController");
95− }
96− }
97−
9888 Button {
9989 text: testCase.sideStage ? testCase.sideStage.shown ? "Hide Side-stage" : "Show Side-stage" : ""
10090 enabled: testCase.sideStage