mirror of
https://github.com/ppy/osu.git
synced 2025-02-16 13:42:56 +08:00
Merge master with conflicts resolved
This commit is contained in:
commit
3ae0564db7
@ -67,9 +67,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
AddRepeatStep(@"add many simple", sendManyNotifications, 3);
|
AddRepeatStep(@"add many simple", sendManyNotifications, 3);
|
||||||
|
|
||||||
AddWaitStep("wait some", 5);
|
waitForCompletion();
|
||||||
|
|
||||||
checkProgressingCount(0);
|
|
||||||
|
|
||||||
AddStep(@"progress #3", sendUploadProgress);
|
AddStep(@"progress #3", sendUploadProgress);
|
||||||
|
|
||||||
@ -77,9 +75,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
checkDisplayedCount(33);
|
checkDisplayedCount(33);
|
||||||
|
|
||||||
AddWaitStep("wait some", 10);
|
waitForCompletion();
|
||||||
|
|
||||||
checkProgressingCount(0);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
@ -109,9 +105,9 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
AddStep(@"background progress #1", sendBackgroundUploadProgress);
|
AddStep(@"background progress #1", sendBackgroundUploadProgress);
|
||||||
|
|
||||||
AddWaitStep("wait some", 5);
|
checkProgressingCount(1);
|
||||||
|
|
||||||
checkProgressingCount(0);
|
waitForCompletion();
|
||||||
|
|
||||||
checkDisplayedCount(2);
|
checkDisplayedCount(2);
|
||||||
|
|
||||||
@ -190,6 +186,8 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
|
|
||||||
private void checkProgressingCount(int expected) => AddAssert($"progressing count is {expected}", () => progressingNotifications.Count == expected);
|
private void checkProgressingCount(int expected) => AddAssert($"progressing count is {expected}", () => progressingNotifications.Count == expected);
|
||||||
|
|
||||||
|
private void waitForCompletion() => AddUntilStep("wait for notification progress completion", () => progressingNotifications.Count == 0);
|
||||||
|
|
||||||
private void sendBarrage()
|
private void sendBarrage()
|
||||||
{
|
{
|
||||||
switch (RNG.Next(0, 4))
|
switch (RNG.Next(0, 4))
|
||||||
|
@ -80,17 +80,12 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Font = OsuFont.GetFont(size: 20, weight: FontWeight.Bold),
|
Font = OsuFont.GetFont(size: 20, weight: FontWeight.Bold),
|
||||||
Margin = new MarginPadding { Bottom = text_offset }
|
Margin = new MarginPadding { Bottom = text_offset }
|
||||||
},
|
},
|
||||||
new CircularContainer
|
new Circle
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
Masking = true,
|
|
||||||
Size = new Vector2(4),
|
Size = new Vector2(4),
|
||||||
Child = new Box
|
Colour = Color4.Gray,
|
||||||
{
|
|
||||||
RelativeSizeAxes = Axes.Both,
|
|
||||||
Colour = Color4.Gray,
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
pageText = new OsuSpriteText
|
pageText = new OsuSpriteText
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user