Skip to content

Commit

Permalink
fix(tests): When_Ctrl_A on macOS/skia
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Nov 4, 2024
1 parent 6f79a81 commit 3d19d61
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,14 +295,14 @@ public async Task When_Ctrl_A()
SUT.Focus(FocusState.Programmatic);
await WindowHelper.WaitForIdle();

SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.A, VirtualKeyModifiers.Control, unicodeKey: 'a'));
SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.A, _platformCtrlKey, unicodeKey: 'a'));
await WindowHelper.WaitForIdle();

Assert.AreEqual(0, SUT.SelectionStart);
Assert.AreEqual(0, keyDownCount);
Assert.AreEqual(SUT.Text.Length, SUT.SelectionLength);

SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.A, VirtualKeyModifiers.Control, unicodeKey: 'a'));
SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.A, _platformCtrlKey, unicodeKey: 'a'));
await WindowHelper.WaitForIdle();

Assert.AreEqual(0, SUT.SelectionStart);
Expand Down

0 comments on commit 3d19d61

Please sign in to comment.