2018-07-18 09:26:08 +08:00
|
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
2018-07-17 05:50:22 +08:00
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
|
|
using NUnit.Framework;
|
2018-07-25 20:31:41 +08:00
|
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
2018-07-17 05:50:22 +08:00
|
|
|
|
using osu.Game.Overlays;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual
|
|
|
|
|
{
|
|
|
|
|
[TestFixture]
|
2018-07-25 02:13:53 +08:00
|
|
|
|
public class TestCaseChangelogOverlay : OsuTestCase
|
2018-07-17 05:50:22 +08:00
|
|
|
|
{
|
|
|
|
|
private ChangelogOverlay changelog;
|
|
|
|
|
|
|
|
|
|
protected override void LoadComplete()
|
|
|
|
|
{
|
|
|
|
|
base.LoadComplete();
|
|
|
|
|
|
|
|
|
|
Add(changelog = new ChangelogOverlay());
|
2018-07-23 03:00:29 +08:00
|
|
|
|
AddStep(@"Show", changelog.Show);
|
2018-07-25 20:31:41 +08:00
|
|
|
|
AddStep(@"Hide", changelog.Hide);
|
|
|
|
|
AddWaitStep(3);
|
|
|
|
|
AddStep(@"Show with Lazer 2018.712.0", () =>
|
|
|
|
|
{
|
2018-10-19 03:04:21 +08:00
|
|
|
|
changelog.FetchAndShowBuild(new APIChangelogBuild
|
2018-07-25 20:31:41 +08:00
|
|
|
|
{
|
|
|
|
|
Version = "2018.712.0",
|
|
|
|
|
UpdateStream = new UpdateStream { Name = "lazer" },
|
|
|
|
|
});
|
|
|
|
|
changelog.Show();
|
|
|
|
|
});
|
|
|
|
|
AddWaitStep(3);
|
|
|
|
|
AddStep(@"Hide", changelog.Hide);
|
|
|
|
|
AddWaitStep(3);
|
|
|
|
|
AddStep(@"Show with listing", () =>
|
|
|
|
|
{
|
|
|
|
|
changelog.ShowListing();
|
|
|
|
|
changelog.Show();
|
|
|
|
|
});
|
2018-07-17 05:50:22 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|