mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Move parallelizable to new file * Add UseSameRuneTypeForWords property * Add SelectWordOnlyOnDoubleClick property and ProcessDoubleClickSelection method * Change IsSameRuneType method to also handle equivalent rune types * Fix WordBackward and WordForward to support properly handle rune types * Fix unit test to deal properly with the new roles of rune types * Add new unit tests * Remove duplicated unit test * Add UseSameRuneTypeForWords and SelectWordOnlyOnDoubleClick handling into Editor scenario
This commit is contained in:
@@ -348,6 +348,9 @@ public class TextFieldTests
|
||||
tf.BeginInit ();
|
||||
tf.EndInit ();
|
||||
|
||||
Assert.False (tf.UseSameRuneTypeForWords);
|
||||
Assert.Equal (22, tf.CursorPosition);
|
||||
|
||||
tf.NewKeyDownEvent (Key.CursorLeft.WithCtrl);
|
||||
Assert.Equal (15, tf.CursorPosition);
|
||||
tf.NewKeyDownEvent (Key.CursorLeft.WithCtrl);
|
||||
@@ -402,14 +405,14 @@ public class TextFieldTests
|
||||
new () { Position = new (idx, 1), Flags = MouseFlags.Button1DoubleClicked, View = tf }
|
||||
)
|
||||
);
|
||||
Assert.Equal ("movie.", tf.SelectedText);
|
||||
Assert.Equal ("movie", tf.SelectedText);
|
||||
|
||||
Assert.True (
|
||||
tf.NewMouseEvent (
|
||||
new () { Position = new (idx + 1, 1), Flags = MouseFlags.Button1DoubleClicked, View = tf }
|
||||
)
|
||||
);
|
||||
Assert.Equal ("movie.", tf.SelectedText);
|
||||
Assert.Equal ("movie", tf.SelectedText);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
2408
Tests/UnitTestsParallelizable/Views/TextViewTests.cs
Normal file
2408
Tests/UnitTestsParallelizable/Views/TextViewTests.cs
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user