on xenial help sign in
Fix DisabledScreenNotice::test_rotation

Change expectFail into expectFailContinue Otherwise the rest of the test doesn't get executed and we do want it to in this case Approved by: Daniel d'Andrada

commite698297dbd8df300c38ecdbf96841a69beeec94d authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 3 Aug 2016, 15:49 (10 years ago) parentb15b7292775df4
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