mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 11:12:57 +08:00
43 lines
1.3 KiB
C#
43 lines
1.3 KiB
C#
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using NUnit.Framework;
|
|
using osu.Game.Online.API.Requests.Responses;
|
|
using osu.Game.Overlays;
|
|
|
|
namespace osu.Game.Tests.Visual
|
|
{
|
|
[TestFixture]
|
|
public class TestCaseChangelogOverlay : OsuTestCase
|
|
{
|
|
private ChangelogOverlay changelog;
|
|
|
|
protected override void LoadComplete()
|
|
{
|
|
base.LoadComplete();
|
|
|
|
Add(changelog = new ChangelogOverlay());
|
|
AddStep(@"Show", changelog.Show);
|
|
AddStep(@"Hide", changelog.Hide);
|
|
AddWaitStep(3);
|
|
AddStep(@"Show with Lazer 2018.712.0", () =>
|
|
{
|
|
changelog.FetchAndShowBuild(new APIChangelogBuild
|
|
{
|
|
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();
|
|
});
|
|
}
|
|
}
|
|
}
|