hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 810a7affc7 iOS: a held space reads as a typed one for the strip and 123
Follow-up to the held mid-sentence space (14ed855d). Two regressions it
introduced: after "brown" was replaced with "black" and space tapped in "The
quick brown fox", the strip still offered completions of the finished word
(blackberry, blacks), and picking one replaced "black"; and a space held on
the 123 page left the keys on 123, where a typed space goes back to ABC.

- The strip now reads the text before the cursor with the held space added
  (stripBefore), so it offers next-word predictions as at a typed space,
  with the same capitalization rule.
- Picking from the strip while a space is held types that space first, so
  the pick goes in after it ("black women fox"), never in the finished word's
  place; the space after the pick is held again before " fox". A revert pick
  is untouched (the strip offers it only after delete takes the held space).
- The space bar's held space counts as a space for the keys' page:
  layerState.didInsert(" ") then rebuildLayoutIfNeeded, so 123 returns to
  ABC. A picked suggestion's held space keeps today's page behaviour.
- FullKeyboardEngine.swift stays at 1,500 lines: insertPicked now logs the
  suggestion context itself, and layerState and rebuildLayoutIfNeeded lose
  private so the SmartSpace file can use them.

Verified on an iOS 27.2 simulator with the Hex keyboard (KBHost field,
"brown" selected): "black" then space reads "The quick black fox jumps" and
the strip shows and / women / hair (next words, as origin/dev showed at a
typed space); picking "women" reads "The quick black women fox jumps" and the
strip moves on (in / and / who). 123, "7", space reads "The quick 7 fox
jumps" with the letters page back. "blsck", space, delete keeps "black fox"
and offers the revert; tapping it reads "blsck fox". xcodebuild
test-without-building -only-testing FullKeyboardEngineTests and
TypingLogTests: 124 tests, 0 failures, including a new
testAHeldSpaceOffersTheNextWordAndGoesBackToLetters case.
2026-11-21 12:42:45 -05:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
CleanupTaggerTests.swift iOS keyboard: stale microphone errors clear, Hex key audio calls leave the main thread, counts read 1, 2, 3 (#2203) 2026-11-21 10:08:42 -05:00
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
DictationLanguageTests.swift iOS: dictate Latin American Spanish with Latin America's model, and keep a picked variant when the keyboard switches (#2193) 2026-11-21 09:53:34 -05:00
DictationLearningTests.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DotScopeTests.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmojiSuggesterTests.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
FullKeyboardEngineTests.swift iOS: a held space reads as a typed one for the strip and 123 2026-11-21 12:42:45 -05:00
HexKeyGestureTests.swift iOS: translation says when it pastes as spoken, retries, and never turns itself off (#2176) 2026-11-21 06:33:37 -05:00
KeyboardBridgeTests.swift iOS keyboard: stale microphone errors clear, Hex key audio calls leave the main thread, counts read 1, 2, 3 (#2203) 2026-11-21 10:08:42 -05:00
KeyboardLayoutTests.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
LanguageLearningTests.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
ShiftStateMachineTests.swift iOS: Greek keyboard, tonos autocorrect, and a final ς in Lowercase (#2184) 2026-11-21 08:26:30 -05:00
SwipeDecoderTests.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
TranscriptCleanupTests.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
TypingLogTests.swift iOS: opaque keyboard panel so stale system layers can't show through, and a nil-safe field ID (#2139) 2026-11-21 03:45:47 +00:00