Skip to content

Commit

Permalink
fix(tests): When_Cut_Paste on macOS/skia
Browse files Browse the repository at this point in the history
  • Loading branch information
spouliot committed Nov 4, 2024
1 parent ff2386c commit d5f60ec
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1704,7 +1704,7 @@ public async Task When_Cut_Paste()

SUT.Select(2, 4);
await WindowHelper.WaitForIdle();
SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.X, VirtualKeyModifiers.Control, unicodeKey: 'x'));
SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.X, _platformCtrlKey, unicodeKey: 'x'));
await WindowHelper.WaitForIdle();

Assert.IsFalse(handled);
Expand All @@ -1715,7 +1715,7 @@ public async Task When_Cut_Paste()

SUT.Select(SUT.Text.Length - 1, 0);
await WindowHelper.WaitForIdle();
SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.V, VirtualKeyModifiers.Control, unicodeKey: 'v'));
SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.V, _platformCtrlKey, unicodeKey: 'v'));
await WindowHelper.WaitForIdle();

Assert.IsFalse(handled);
Expand All @@ -1725,7 +1725,7 @@ public async Task When_Cut_Paste()

SUT.Select(6, 3);
await WindowHelper.WaitForIdle();
SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.V, VirtualKeyModifiers.Control, unicodeKey: 'v'));
SUT.SafeRaiseEvent(UIElement.KeyDownEvent, new KeyRoutedEventArgs(SUT, VirtualKey.V, _platformCtrlKey, unicodeKey: 'v'));
await WindowHelper.WaitForIdle();

Assert.AreEqual("Heworlllo d", SUT.Text);
Expand Down

0 comments on commit d5f60ec

Please sign in to comment.