(t *testing.T)
| 362 | } |
| 363 | |
| 364 | func TestKeyRepeatCursor(t *testing.T) { |
| 365 | term := vt.NewMockTerm() |
| 366 | defer MustClose(t, term) |
| 367 | |
| 368 | MustStart(t, term) |
| 369 | |
| 370 | // Keep the initial repeat quick, but make later repeats very slow so the test |
| 371 | // does not depend on coarse timer behavior. |
| 372 | term.SetRepeat(time.Millisecond*50, time.Second) |
| 373 | |
| 374 | term.KeyPress(vt.KeyRight) |
| 375 | time.Sleep(100 * time.Millisecond) |
| 376 | term.KeyPress(vt.KeyRight) |
| 377 | term.KeyRelease(vt.KeyRight) |
| 378 | term.KeyRelease(vt.KeyRight) |
| 379 | |
| 380 | CheckRead(t, term, "\x1b[C\x1b[C") |
| 381 | } |
| 382 | |
| 383 | func TestKeyWin32(t *testing.T) { |
| 384 | // Win32 input mode is ESC [ Vk ; Sc ; Uc ; Kd ; Cs ; Rc _ |
nothing calls this directly
no test coverage detected
searching dependent graphs…