test: fix typo in test-tty-escape-sequence-processing.c

postion -> position in several comments

PR-URL: https://github.com/libuv/libuv/pull/3284
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Jameson Nash <vtjnash@gmail.com>
This commit is contained in:
Ikko Ashimine 2021-09-08 23:02:11 +09:00 committed by GitHub
parent 6530ea2ff2
commit 50c337a0b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -271,7 +271,7 @@ static void make_expect_screen_erase(struct captured_screen* cs,
static void make_expect_screen_write(struct captured_screen* cs, static void make_expect_screen_write(struct captured_screen* cs,
COORD cursor_position, COORD cursor_position,
const char* text) { const char* text) {
/* postion of cursor */ /* position of cursor */
char* start; char* start;
start = cs->text + cs->si.width * (cursor_position.Y - 1) + start = cs->text + cs->si.width * (cursor_position.Y - 1) +
cursor_position.X - 1; cursor_position.X - 1;
@ -1261,7 +1261,7 @@ TEST_IMPL(tty_save_restore_cursor_position) {
cursor_pos.Y = si.height / 4; cursor_pos.Y = si.height / 4;
set_cursor_position(&tty_out, cursor_pos); set_cursor_position(&tty_out, cursor_pos);
/* restore the cursor postion */ /* restore the cursor position */
snprintf(buffer, sizeof(buffer), "%su", CSI); snprintf(buffer, sizeof(buffer), "%su", CSI);
write_console(&tty_out, buffer); write_console(&tty_out, buffer);
get_cursor_position(&tty_out, &cursor_pos); get_cursor_position(&tty_out, &cursor_pos);
@ -1280,7 +1280,7 @@ TEST_IMPL(tty_save_restore_cursor_position) {
cursor_pos.Y = si.height / 4; cursor_pos.Y = si.height / 4;
set_cursor_position(&tty_out, cursor_pos); set_cursor_position(&tty_out, cursor_pos);
/* restore the cursor postion */ /* restore the cursor position */
snprintf(buffer, sizeof(buffer), "%s8", ESC); snprintf(buffer, sizeof(buffer), "%s8", ESC);
write_console(&tty_out, buffer); write_console(&tty_out, buffer);
get_cursor_position(&tty_out, &cursor_pos); get_cursor_position(&tty_out, &cursor_pos);