This commit is contained in:
Tatsuya Kyushima 2026-09-09 16:41:47 +09:00 committed by GitHub
commit a9176812eb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -632,6 +632,26 @@ func TestTextArea(t *testing.T) {
expectedCursor: 4,
expectedClipboard: "def",
},
{
actions: func(textarea *TextArea) {
textarea.TypeString(`(abc)def`)
textarea.GoToStartOfLine()
textarea.ForwardDeleteWord()
},
expectedContent: "abc)def",
expectedCursor: 0,
expectedClipboard: "(",
},
{
actions: func(textarea *TextArea) {
textarea.TypeString(`abc)def`)
textarea.GoToStartOfLine()
textarea.ForwardDeleteWord()
},
expectedContent: ")def",
expectedCursor: 0,
expectedClipboard: "abc",
},
{
actions: func(textarea *TextArea) {
textarea.TypeString(`abc`)