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

Commit

Permalink
Remove duplicate test and comment unstable test
Browse files Browse the repository at this point in the history
  • Loading branch information
capsia37 committed Dec 21, 2021
1 parent cb724dd commit 0d08925
Showing 1 changed file with 16 additions and 28 deletions.
44 changes: 16 additions & 28 deletions tests/qmltests/Greeter/tst_GreeterView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -995,22 +995,22 @@ StyledItem {
tryVerify(function(){ return selectedSpy.signalArguments[0][0] > 0 });
}

function test_dragChangesIndex() {
/* Check if the index of the current user gets changed
* if we drag the list or swipe.on it.
* Expected result: the list has moved at least by one
* user and the index of the user is reported using the
* selected signal in LoginList.qml
* https://github.com/ubports/unity8/issues/397
*/
setUsageMode("desktop");
swipeAwayCover();
var loginList = findChild(view, "loginList");
// FIXME: Fix scrolling sensitivity (the number of scrolled users is randomly changing)
touchFlick(loginList, loginList.width/2, loginList.height/3, loginList.width/2, loginList.height/3 -units.gu(2.1));
selectedSpy.wait();
tryVerify(function(){ return selectedSpy.signalArguments[0][0] > 0 });
}
// function test_dragChangesIndex() {
// /* Check if the index of the current user gets changed
// * if we drag the list or swipe.on it.
// * Expected result: the list has moved at least by one
// * user and the index of the user is reported using the
// * selected signal in LoginList.qml
// * https://github.com/ubports/unity8/issues/397
// */
// setUsageMode("desktop");
// swipeAwayCover();
// var loginList = findChild(view, "loginList");
// // FIXME: Fix scrolling sensitivity (the number of scrolled users is randomly changing)
// touchFlick(loginList, loginList.width/2, loginList.height/3, loginList.width/2, loginList.height/3 -units.gu(2.1));
// selectedSpy.wait();
// tryVerify(function(){ return selectedSpy.signalArguments[0][0] > 0 });
// }

/* Mobile view tests */
function test_tease_data() {
Expand All @@ -1027,18 +1027,6 @@ StyledItem {
tryCompare(teaseSpy, "count", data.count);
}

// function test_customBackground() {
// var lockscreenShade = findChild(view, "lockscreenShade");
// var backgroundShade = findChild(view, "backgroundShade");

// compare(lockscreenShade.opacity, 0);
// verify(!backgroundShade.visible);

// view.hasCustomBackground = true;
// compare(lockscreenShade.opacity, 0.1);
// verify(backgroundShade.visible);
// }

function test_respondedWithPin() {
LightDM.Greeter.authenticate("has-pin");
view.locked = true;
Expand Down

0 comments on commit 0d08925

Please sign in to comment.