mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 08:27:49 +08:00
Make sure clipboard is cleared before each test
This commit is contained in:
parent
9adb9dd5f8
commit
b2d17715b3
@ -34,6 +34,14 @@ namespace osu.Game.Tests.Visual.Editing
|
||||
[Resolved]
|
||||
private Clipboard hostClipboard { get; set; } = null!;
|
||||
|
||||
public override void SetUpSteps()
|
||||
{
|
||||
base.SetUpSteps();
|
||||
|
||||
// writing arbitrary value to the clipboard to make sure the clipboard contains no hitobects before each test
|
||||
AddStep("clear clipboard", () => hostClipboard.SetText("dummy text"));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void TestCutRemovesObjects()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user