mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-21 14:49:10 +00:00
add failing test as some sort of todo / reminder
This commit is contained in:
parent
4b21e3e54e
commit
eb8d204d00
1 changed files with 15 additions and 0 deletions
|
@ -202,6 +202,21 @@ class InputLogicTest {
|
||||||
assertEquals("example.net", composingText)
|
assertEquals("example.net", composingText)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// fails because
|
||||||
|
// period is not handled with handleSeparatorEvent in this case
|
||||||
|
// pickSuggestion sets phantom space state
|
||||||
|
// insertAutomaticSpaceIfOptionsAndTextAllow allows the space
|
||||||
|
// todo: fix it either in some of those functions, or by finally improving URL detection in a reasonable (and performant) way
|
||||||
|
@Test fun noAutospaceInUrlFieldWhenPickingSuggestion() {
|
||||||
|
reset()
|
||||||
|
setInputType(InputType.TYPE_CLASS_TEXT or InputType.TYPE_TEXT_VARIATION_URI)
|
||||||
|
chainInput("exam")
|
||||||
|
pickSuggestion("example")
|
||||||
|
assertEquals("example", text)
|
||||||
|
input('.')
|
||||||
|
assertEquals("example.", text)
|
||||||
|
}
|
||||||
|
|
||||||
@Test fun noAutospaceForDetectedUrl() { // "light" version, should work without url detection
|
@Test fun noAutospaceForDetectedUrl() { // "light" version, should work without url detection
|
||||||
reset()
|
reset()
|
||||||
DeviceProtectedUtils.getSharedPreferences(latinIME).edit { putBoolean(Settings.PREF_AUTOSPACE_AFTER_PUNCTUATION, true) }
|
DeviceProtectedUtils.getSharedPreferences(latinIME).edit { putBoolean(Settings.PREF_AUTOSPACE_AFTER_PUNCTUATION, true) }
|
||||||
|
|
Loading…
Add table
Reference in a new issue