mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 15:57:51 +08:00
Isolate tests properly
This commit is contained in:
parent
e91c8fb4bd
commit
155d6e57be
@ -29,9 +29,10 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
private TestCancellableCommentEditor cancellableCommentEditor = null!;
|
private TestCancellableCommentEditor cancellableCommentEditor = null!;
|
||||||
private DummyAPIAccess dummyAPI => (DummyAPIAccess)API;
|
private DummyAPIAccess dummyAPI => (DummyAPIAccess)API;
|
||||||
|
|
||||||
[SetUp]
|
[SetUpSteps]
|
||||||
public void SetUp() => Schedule(() =>
|
public void SetUpSteps()
|
||||||
Add(new FillFlowContainer
|
{
|
||||||
|
AddStep("create content", () => Child = new FillFlowContainer
|
||||||
{
|
{
|
||||||
Anchor = Anchor.Centre,
|
Anchor = Anchor.Centre,
|
||||||
Origin = Anchor.Centre,
|
Origin = Anchor.Centre,
|
||||||
@ -44,7 +45,8 @@ namespace osu.Game.Tests.Visual.UserInterface
|
|||||||
commentEditor = new TestCommentEditor(),
|
commentEditor = new TestCommentEditor(),
|
||||||
cancellableCommentEditor = new TestCancellableCommentEditor()
|
cancellableCommentEditor = new TestCancellableCommentEditor()
|
||||||
}
|
}
|
||||||
}));
|
});
|
||||||
|
}
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestCommitViaKeyboard()
|
public void TestCommitViaKeyboard()
|
||||||
|
Loading…
Reference in New Issue
Block a user