mirror of https://github.com/ppy/osu
Fix assert step not waiting for transformation
This commit is contained in:
parent
8ac3015f14
commit
25b94061fd
|
@ -75,11 +75,11 @@ public void TestOpacity()
|
|||
{
|
||||
AddMoveStep(100, 0);
|
||||
AddClickStep(MouseButton.Left);
|
||||
AddAssert("outline is semitransparent", () => timeSpanOutline.Alpha < 1);
|
||||
AddUntilStep("outline is semitransparent", () => Precision.DefinitelyBigger(1, timeSpanOutline.Alpha));
|
||||
AddMoveStep(200, 0);
|
||||
AddAssert("outline is opaque", () => Precision.AlmostEquals(timeSpanOutline.Alpha, 1));
|
||||
AddUntilStep("outline is opaque", () => Precision.AlmostEquals(timeSpanOutline.Alpha, 1));
|
||||
AddMoveStep(100, 0);
|
||||
AddAssert("outline is semitransparent", () => timeSpanOutline.Alpha < 1);
|
||||
AddUntilStep("outline is semitransparent", () => Precision.DefinitelyBigger(1, timeSpanOutline.Alpha));
|
||||
}
|
||||
|
||||
private TimeSpanOutline timeSpanOutline => Content.ChildrenOfType<TimeSpanOutline>().Single();
|
||||
|
|
Loading…
Reference in New Issue