mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-04 20:17:09 +00:00
perf(ioscompanion): paste long text for atomic landing
This commit is contained in:
1 parent
2e817e3167
commit
841497cc30
2 files changed
+34
-8
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user