perf(ioscompanion): paste long text for atomic landing

This commit is contained in:
pj committed 2026-06-07 00:28:40 +05:30
1 parent 2e817e3167
commit 841497cc30
2 files changed
+34 -8

No files matched your search

+4 -3
View File
@@ -217,9 +217,10 @@ func TestScreenshotRejectsNonPNG(t *testing.T) {
func TestInputTextFastPathSkipsFieldResolution(t *testing.T) {
companion := &fakeCompanion{accessibilityJSON: "[]"}
d := newTestDriver(companion)
// "hello" is fully mappable, so the fast keyboard path runs and never reads
// the accessibility dump for a field target.
if err := d.InputText(context.Background(), "hello"); err != nil {
// "abc" is fully mappable and under the paste threshold, so the fast
// keyboard path runs and never reads the accessibility dump for a field
// target.
if err := d.InputText(context.Background(), "abc"); err != nil {
t.Fatalf("InputText: %v", err)
}
if indexOf(companion.calls, "hid") < 0 {