Lines Matching refs:cursor_pos_old

380   COORD cursor_pos, cursor_pos_old;  in TEST_IMPL()  local
389 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
390 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
391 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
397 ASSERT_EQ(cursor_pos_old.Y - 1, cursor_pos.Y); in TEST_IMPL()
398 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
401 cursor_pos_old = cursor_pos; in TEST_IMPL()
405 ASSERT_EQ(cursor_pos_old.Y - si.height / 4, cursor_pos.Y); in TEST_IMPL()
406 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
409 cursor_pos_old.X = 1; in TEST_IMPL()
410 cursor_pos_old.Y = 1; in TEST_IMPL()
411 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
415 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
416 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
431 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
440 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
441 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
442 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
448 ASSERT_EQ(cursor_pos_old.Y + 1, cursor_pos.Y); in TEST_IMPL()
449 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
452 cursor_pos_old = cursor_pos; in TEST_IMPL()
456 ASSERT_EQ(cursor_pos_old.Y + si.height / 4, cursor_pos.Y); in TEST_IMPL()
457 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
460 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
461 cursor_pos_old.Y = si.height; in TEST_IMPL()
462 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
466 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
467 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
482 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
491 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
492 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
493 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
499 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
500 ASSERT_EQ(cursor_pos_old.X + 1, cursor_pos.X); in TEST_IMPL()
503 cursor_pos_old = cursor_pos; in TEST_IMPL()
507 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
508 ASSERT_EQ(cursor_pos_old.X + si.width / 4, cursor_pos.X); in TEST_IMPL()
511 cursor_pos_old.X = si.width; in TEST_IMPL()
512 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
513 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
517 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
518 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
521 cursor_pos_old.X = si.width; in TEST_IMPL()
522 cursor_pos_old.Y = si.height; in TEST_IMPL()
523 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
527 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
528 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
543 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
552 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
553 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
554 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
560 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
561 ASSERT_EQ(cursor_pos_old.X - 1, cursor_pos.X); in TEST_IMPL()
564 cursor_pos_old = cursor_pos; in TEST_IMPL()
568 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
569 ASSERT_EQ(cursor_pos_old.X - si.width / 4, cursor_pos.X); in TEST_IMPL()
572 cursor_pos_old.X = 1; in TEST_IMPL()
573 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
574 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
578 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
579 ASSERT_EQ(cursor_pos_old.X, cursor_pos.X); in TEST_IMPL()
582 cursor_pos_old.X = 1; in TEST_IMPL()
583 cursor_pos_old.Y = 1; in TEST_IMPL()
584 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
604 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
613 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
614 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
615 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
621 ASSERT_EQ(cursor_pos_old.Y + 1, cursor_pos.Y); in TEST_IMPL()
625 cursor_pos_old = cursor_pos; in TEST_IMPL()
629 ASSERT_EQ(cursor_pos_old.Y + si.height / 4, cursor_pos.Y); in TEST_IMPL()
633 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
634 cursor_pos_old.Y = si.height; in TEST_IMPL()
635 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
639 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
655 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
664 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
665 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
666 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
672 ASSERT_EQ(cursor_pos_old.Y - 1, cursor_pos.Y); in TEST_IMPL()
676 cursor_pos_old = cursor_pos; in TEST_IMPL()
680 ASSERT_EQ(cursor_pos_old.Y - si.height / 4, cursor_pos.Y); in TEST_IMPL()
684 cursor_pos_old.X = 1; in TEST_IMPL()
685 cursor_pos_old.Y = 1; in TEST_IMPL()
686 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
706 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
715 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
716 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
717 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
724 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
731 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
738 ASSERT_EQ(cursor_pos_old.Y, cursor_pos.Y); in TEST_IMPL()
1249 COORD cursor_pos, cursor_pos_old; in TEST_IMPL() local
1258 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
1259 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
1260 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
1274 ASSERT_EQ(cursor_pos.X, cursor_pos_old.X); in TEST_IMPL()
1275 ASSERT_EQ(cursor_pos.Y, cursor_pos_old.Y); in TEST_IMPL()
1277 cursor_pos_old.X = si.width / 2; in TEST_IMPL()
1278 cursor_pos_old.Y = si.height / 2; in TEST_IMPL()
1279 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
1293 ASSERT_EQ(cursor_pos.X, cursor_pos_old.X); in TEST_IMPL()
1294 ASSERT_EQ(cursor_pos.Y, cursor_pos_old.Y); in TEST_IMPL()
1355 COORD cursor_pos, cursor_pos_old; in TEST_IMPL()
1578 cursor_pos_old.X = expect.si.width / 2; in TEST_IMPL()
1579 cursor_pos_old.Y = expect.si.height / 2; in TEST_IMPL()
1580 set_cursor_position(&tty_out, cursor_pos_old); in TEST_IMPL()
1589 ASSERT(cursor_pos.X = cursor_pos_old.X); in TEST_IMPL()
1590 ASSERT(cursor_pos.Y = cursor_pos_old.Y); in TEST_IMPL()