From 8232cd50a30240c2feb966e65b1675c5767611c4 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Thu, 25 Jun 2026 11:01:14 -0400 Subject: [PATCH] test(embed): add IME/selection test harness + document how to run it MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tools/ime-test/index.html is a single-page input+textarea harness with an on-page log timestamping focus/selection/input/composition events, paint latency, long-tasks, and main-thread blocks — the instrumentation used to pin the erase / caret-jump / first-letter-freeze bugs and what we'll use to profile the magnifier. README documents serving it (python http.server on 8765, 10.0.2.2 for emulator / adb reverse for USB) and opening it as an embedded tab via the in-app browser address bar. Plan gets a matching "How to test" section. Dev tool only — nothing under tools/ ships, so the [ImeDiag] strings stay out of src/. Co-Authored-By: Claude Opus 4.8 (1M context) --- ...6-25-embed-text-selection-native-parity.md | 22 +++++ tools/ime-test/README.md | 54 +++++++++++ tools/ime-test/index.html | 92 +++++++++++++++++++ 3 files changed, 168 insertions(+) create mode 100644 tools/ime-test/README.md create mode 100644 tools/ime-test/index.html diff --git a/amethyst/plans/2026-06-25-embed-text-selection-native-parity.md b/amethyst/plans/2026-06-25-embed-text-selection-native-parity.md index 999ea3734a..5a4af2c48f 100644 --- a/amethyst/plans/2026-06-25-embed-text-selection-native-parity.md +++ b/amethyst/plans/2026-06-25-embed-text-selection-native-parity.md @@ -133,6 +133,28 @@ Until pinned, treat this as a **WebView/Chromium off-window-surface limitation** the app layer cannot currently restore the highlight without recreating the surface (#1). +## How to test + +The on-device harness lives at **`tools/ime-test/`** (`index.html` + `README.md`). +It's a single page with an ``, a ` +
+ + +