Merge remote-tracking branch 'origin/master' into v2-exp

This commit is contained in:
Carlos Alexandro Becker
2025-03-13 16:55:11 -03:00
6 changed files with 77 additions and 33 deletions
+6
View File
@@ -1,6 +1,7 @@
package textinput
import (
"strings"
"testing"
)
@@ -29,6 +30,11 @@ func Test_CurrentSuggestion(t *testing.T) {
if suggestion != expected {
t.Fatalf("Error: expected first suggestion but was %s", suggestion)
}
textinput.Blur()
if strings.HasSuffix(textinput.View(), "test2") {
t.Fatalf("Error: suggestions should not be rendered when input isn't focused. expected \"> test\" but got \"%s\"", textinput.View())
}
}
func Test_SlicingOutsideCap(t *testing.T) {