Fixed indentation

sorry about the style fixes... I'm using JetBrains Rider from now on.
This commit is contained in:
Christine Chen 2021-04-08 21:53:42 -04:00
parent 6b6a71d3c3
commit 59d13b0dd3
3 changed files with 11 additions and 9 deletions

View File

@ -75,6 +75,7 @@ protected override void LoadComplete()
}
protected override UpdateManager CreateUpdateManager() => new SimpleUpdateManager();
public class AndroidPowerStatus : PowerStatus
{
public override double ChargeLevel => Battery.ChargeLevel;

View File

@ -302,21 +302,21 @@ public void TestLowBatteryNotification(bool isCharging, double chargeLevel)
// set charge status and level
AddStep("load player", () => resetPlayer(false, () =>
{
powerStatus.IsCharging = isCharging;
powerStatus.ChargeLevel = chargeLevel;
powerStatus.IsCharging = isCharging;
powerStatus.ChargeLevel = chargeLevel;
}));
AddUntilStep("wait for player", () => player?.LoadState == LoadState.Ready);
int notificationCount = !isCharging && chargeLevel <= powerStatus.BatteryCutoff ? 1 : 0;
AddAssert("check for notification", () => notificationOverlay.UnreadCount.Value == notificationCount);
AddStep("click notification", () =>
{
var scrollContainer = (OsuScrollContainer)notificationOverlay.Children.Last();
var flowContainer = scrollContainer.Children.OfType<FillFlowContainer<NotificationSection>>().First();
var notification = flowContainer.First();
{
var scrollContainer = (OsuScrollContainer)notificationOverlay.Children.Last();
var flowContainer = scrollContainer.Children.OfType<FillFlowContainer<NotificationSection>>().First();
var notification = flowContainer.First();
InputManager.MoveMouseTo(notification);
InputManager.Click(MouseButton.Left);
});
InputManager.MoveMouseTo(notification);
InputManager.Click(MouseButton.Left);
});
AddUntilStep("wait for player load", () => player.IsLoaded);
}

View File

@ -268,6 +268,7 @@ protected override void LogoExiting(OsuLogo logo)
}
#endregion
protected override void Update()
{
base.Update();