A game framework written with osu! in mind.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Further input test refactorings

+9 -6
+4 -3
osu.Framework.Tests/Input/KeyboardInputTest.cs
··· 59 59 } 60 60 61 61 /// <summary> 62 - /// Tests that if a drawable is removed from the hierarchy (or is otherwise removed from the input queues), 63 - /// it won't receive an OnKeyDown() event for every subsequent repeat. 62 + /// Tests that a drawable that is removed from the hierarchy (or is otherwise removed from the input queues) won't receive OnKeyDown() events for every subsequent repeat. 64 63 /// </summary> 65 64 [Test] 66 65 public void TestNoLongerValidDrawableDoesNotReceiveRepeat() ··· 77 76 }); 78 77 79 78 AddStep("press key", () => InputManager.PressKey(Key.A)); 79 + AddUntilStep("wait for repeat on receptor 0", () => receptors[0].RepeatReceived); 80 80 81 81 AddStep("remove receptor 0 & reset repeat", () => 82 82 { ··· 90 90 } 91 91 92 92 /// <summary> 93 - /// Tests that a drawable that was previously removed from the hierarchy receives OnKeyDown() for repeat events if the drawable previously received OnKeyDown(). 93 + /// Tests that a drawable that was previously removed from the hierarchy receives repeat OnKeyDown() events when re-added to the hierarchy, 94 + /// if it previously received a non-repeat OnKeyDown() event. 94 95 /// </summary> 95 96 [Test] 96 97 public void TestReValidatedDrawableReceivesRepeat()
+5 -3
osu.Framework.Tests/Input/MouseInputTest.cs
··· 16 16 public class MouseInputTest : ManualInputManagerTestScene 17 17 { 18 18 /// <summary> 19 - /// Tests that if a drawable is removed from the hierarchy (or is otherwise removed from the input queues), 20 - /// it won't receive an OnClick() event on mouse up. 19 + /// Tests that a drawable that is removed from the hierarchy (or is otherwise removed from the input queues) does not receive an OnClick() event on mouse up. 21 20 /// </summary> 22 21 [Test] 23 22 public void TestNoLongerValidDrawableDoesNotReceiveClick() ··· 43 42 } 44 43 45 44 /// <summary> 46 - /// Tests that a drawable that is removed and re-added to the hierarchy can still handle OnClick(). 45 + /// Tests that a drawable that is removed and re-added to the hierarchy still receives an OnClick() event. 47 46 /// </summary> 48 47 [Test] 49 48 public void TestReValidatedDrawableReceivesClick() ··· 69 68 AddAssert("receptor 0 received click", () => receptors[0].ClickReceived); 70 69 } 71 70 71 + /// <summary> 72 + /// Tests that a drawable that is removed from the hierarchy (or is otherwise removed from the input queues) does not receive an OnDoubleClick() event. 73 + /// </summary> 72 74 [Test] 73 75 public void TestNoLongerValidDrawableDoesNotReceiveDoubleClick() 74 76 {