mirror of
https://github.com/ppy/osu
synced 2025-01-09 23:59:44 +00:00
Fix failed testcase
This commit is contained in:
parent
3008ade8a2
commit
736a36a326
@ -49,9 +49,10 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
AddStep(@"Call PrevTrack", () => musicController.PrevTrack());
|
||||
AddAssert(@"Check if it restarted", () => currentTrack == Beatmap.Value);
|
||||
|
||||
AddStep(@"Seek track to 1 second", () => musicController.SeekTo(1000));
|
||||
AddStep(@"Seek track to 2 second", () => musicController.SeekTo(2000));
|
||||
AddStep(@"Call PrevTrack", () => musicController.PrevTrack());
|
||||
AddAssert(@"Check if it changed to prev track'", () => currentTrack != Beatmap.Value);
|
||||
// If the track isn't changing, check the current track's time instead
|
||||
AddAssert(@"Check if it changed to prev track'", () => currentTrack != Beatmap.Value || currentTrack.Track.CurrentTime < 2000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user