on xenial help sign in
Change expectFail into expectFailContinue

Otherwise the rest of the test doesn't get executed and we do want it to in this case

commit2775df4d2790d695216e9b185979db89ae77b36a authorAlbert Astals Cid <albert.astals@canonical.com> dateThu 23 Jun 2016, 10:30 (10 years ago) parent956664c
1 file changed+1−1
tests/qmltests/tst_DisabledScreenNotice.qml+1−1
tests/qmltests/tst_DisabledScreenNotice.qml+1−1
@@ -106,7 +106,7 @@ Item {
106106 orientationSelector.selectedIndex = data.selectedOrientation;
107107
108108 // Make sure it is still in the old rotation (as we have the lock turned on)
109− expectFail("", "Rotation lock set. Expecting automatic rotation to fail.");
109+ expectFailContinue("", "Rotation lock set. Expecting automatic rotation to fail.");
110110 tryCompareFunction(function() { return content.rotation != oldRotation; }, true, 300);
111111
112112 // Now uncheck the rotation lock