mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 08:13:10 +08:00
Significantly reduce test case time.
This commit is contained in:
parent
a96c259a8e
commit
264bf17bc2
@ -43,7 +43,7 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
};
|
};
|
||||||
|
|
||||||
const double start_time = 500;
|
const double start_time = 500;
|
||||||
const double duration = 1000;
|
const double duration = 500;
|
||||||
|
|
||||||
Func<double, bool, DrawableTimingChange> createTimingChange = (time, gravity) =>
|
Func<double, bool, DrawableTimingChange> createTimingChange = (time, gravity) =>
|
||||||
{
|
{
|
||||||
@ -67,7 +67,7 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
{
|
{
|
||||||
Clear();
|
Clear();
|
||||||
|
|
||||||
var rateAdjustClock = new StopwatchClock(true) { Rate = 0.5 };
|
var rateAdjustClock = new StopwatchClock(true) { Rate = 1 };
|
||||||
|
|
||||||
ManiaPlayfield playField;
|
ManiaPlayfield playField;
|
||||||
Add(playField = new ManiaPlayfield(4)
|
Add(playField = new ManiaPlayfield(4)
|
||||||
@ -133,10 +133,10 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
AddStep("Right special style", () => createPlayfield(8, SpecialColumnPosition.Right));
|
AddStep("Right special style", () => createPlayfield(8, SpecialColumnPosition.Right));
|
||||||
|
|
||||||
AddStep("Notes with input", () => createPlayfieldWithNotes(false));
|
AddStep("Notes with input", () => createPlayfieldWithNotes(false));
|
||||||
AddWaitStep(15);
|
AddWaitStep((int)Math.Ceiling((start_time + duration) / TimePerAction));
|
||||||
|
|
||||||
AddStep("Notes with gravity", () => createPlayfieldWithNotes(true));
|
AddStep("Notes with gravity", () => createPlayfieldWithNotes(true));
|
||||||
AddWaitStep(15);
|
AddWaitStep((int)Math.Ceiling((start_time + duration) / TimePerAction));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void triggerKeyDown(Column column)
|
private void triggerKeyDown(Column column)
|
||||||
|
Loading…
Reference in New Issue
Block a user