Lines Matching defs:expect
302 struct captured_screen* expect) {
308 ASSERT(expect->text);
309 ASSERT(expect->attributes);
310 if (actual->si.length != expect->si.length) {
313 if (actual->si.width != expect->si.width) {
316 if (actual->si.height != expect->si.height) {
320 if (*(actual->text + current) != *(expect->text + current)) {
327 *(expect->text + current),
331 if (*(actual->attributes + current) != *(expect->attributes + current)) {
338 *(expect->attributes + current),
344 clear_screen(tty_out, &expect->si);
345 free_screen(expect);
845 struct captured_screen actual = {0}, expect = {0};
854 capture_screen(&tty_out, &expect);
855 cursor_pos.X = expect.si.width / 2;
856 cursor_pos.Y = expect.si.height / 2;
857 make_expect_screen_erase(&expect, cursor_pos, dir, TRUE);
864 ASSERT(compare_screen(&tty_out, &actual, &expect));
868 capture_screen(&tty_out, &expect);
869 make_expect_screen_erase(&expect, cursor_pos, dir, TRUE);
876 ASSERT(compare_screen(&tty_out, &actual, &expect));
881 capture_screen(&tty_out, &expect);
882 make_expect_screen_erase(&expect, cursor_pos, dir, TRUE);
889 ASSERT(compare_screen(&tty_out, &actual, &expect));
894 capture_screen(&tty_out, &expect);
895 make_expect_screen_erase(&expect, cursor_pos, dir, TRUE);
902 ASSERT(compare_screen(&tty_out, &actual, &expect));
919 struct captured_screen actual = {0}, expect = {0};
928 capture_screen(&tty_out, &expect);
929 cursor_pos.X = expect.si.width / 2;
930 cursor_pos.Y = expect.si.height / 2;
931 make_expect_screen_erase(&expect, cursor_pos, dir, FALSE);
938 ASSERT(compare_screen(&tty_out, &actual, &expect));
942 capture_screen(&tty_out, &expect);
943 make_expect_screen_erase(&expect, cursor_pos, dir, FALSE);
950 ASSERT(compare_screen(&tty_out, &actual, &expect));
955 capture_screen(&tty_out, &expect);
956 make_expect_screen_erase(&expect, cursor_pos, dir, FALSE);
963 ASSERT(compare_screen(&tty_out, &actual, &expect));
968 capture_screen(&tty_out, &expect);
969 make_expect_screen_erase(&expect, cursor_pos, dir, FALSE);
976 ASSERT(compare_screen(&tty_out, &actual, &expect));
1050 struct captured_screen actual = {0}, expect = {0};
1082 capture_screen(&tty_out, &expect);
1083 fg_attrs[8][1] = expect.si.default_attr & FOREGROUND_WHITE;
1084 bg_attrs[0][1] = expect.si.default_attr & BACKGROUND_WHITE;
1089 capture_screen(&tty_out, &expect);
1090 cursor_pos.X = expect.si.width / 2;
1091 cursor_pos.Y = expect.si.height / 2;
1092 attr = (expect.si.default_attr & ~FOREGROUND_WHITE) | fg_attrs[i][1];
1093 make_expect_screen_write(&expect, cursor_pos, HELLO);
1094 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr);
1102 ASSERT(compare_screen(&tty_out, &actual, &expect));
1108 capture_screen(&tty_out, &expect);
1109 cursor_pos.X = expect.si.width / 2;
1110 cursor_pos.Y = expect.si.height / 2;
1111 attr = (expect.si.default_attr & ~BACKGROUND_WHITE) | bg_attrs[i][1];
1112 make_expect_screen_write(&expect, cursor_pos, HELLO);
1113 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr);
1121 ASSERT(compare_screen(&tty_out, &actual, &expect));
1128 capture_screen(&tty_out, &expect);
1129 cursor_pos.X = expect.si.width / 2;
1130 cursor_pos.Y = expect.si.height / 2;
1131 attr = expect.si.default_attr & ~FOREGROUND_WHITE & ~BACKGROUND_WHITE;
1133 make_expect_screen_write(&expect, cursor_pos, HELLO);
1134 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr);
1148 ASSERT(compare_screen(&tty_out, &actual, &expect));
1152 capture_screen(&tty_out, &expect);
1153 cursor_pos.X = expect.si.width / 2;
1154 cursor_pos.Y = expect.si.height / 2;
1156 attr = expect.si.default_attr;
1158 make_expect_screen_write(&expect, cursor_pos, HELLO);
1159 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr);
1161 make_expect_screen_write(&expect, cursor_pos, HELLO);
1162 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr);
1180 ASSERT(compare_screen(&tty_out, &actual, &expect));
1183 capture_screen(&tty_out, &expect);
1184 cursor_pos.X = expect.si.width / 2;
1185 cursor_pos.Y = expect.si.height / 2;
1187 attr = expect.si.default_attr;
1189 make_expect_screen_write(&expect, cursor_pos, HELLO);
1190 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr);
1203 ASSERT(compare_screen(&tty_out, &actual, &expect));
1206 capture_screen(&tty_out, &expect);
1207 cursor_pos.X = expect.si.width / 2;
1208 cursor_pos.Y = expect.si.height / 2;
1210 attr = expect.si.default_attr;
1217 make_expect_screen_write(&expect, cursor_pos, HELLO);
1218 make_expect_screen_set_attr(&expect, cursor_pos, strlen(HELLO), attr);
1220 make_expect_screen_write(&expect, cursor_pos, HELLO);
1234 ASSERT(compare_screen(&tty_out, &actual, &expect));
1308 struct captured_screen actual = {0}, expect = {0};
1317 capture_screen(&tty_out, &expect);
1319 cursor_pos.X = expect.si.width;
1320 cursor_pos.Y = expect.si.height;
1333 ASSERT(compare_screen(&tty_out, &actual, &expect));
1353 struct captured_screen actual = {0}, expect = {0};
1369 capture_screen(&tty_out, &expect);
1370 make_expect_screen_write(&expect, cursor_pos, HELLO);
1372 make_expect_screen_write(&expect, cursor_pos, HELLO);
1376 ASSERT(compare_screen(&tty_out, &actual, &expect));
1382 capture_screen(&tty_out, &expect);
1383 make_expect_screen_write(&expect, cursor_pos, HELLO);
1385 make_expect_screen_write(&expect, cursor_pos, HELLO);
1389 ASSERT(compare_screen(&tty_out, &actual, &expect));
1395 capture_screen(&tty_out, &expect);
1396 make_expect_screen_write(&expect, cursor_pos, HELLO);
1398 make_expect_screen_write(&expect, cursor_pos, HELLO);
1402 ASSERT(compare_screen(&tty_out, &actual, &expect));
1408 capture_screen(&tty_out, &expect);
1418 make_expect_screen_write(&expect, cursor_pos, HELLO);
1420 make_expect_screen_write(&expect, cursor_pos, HELLO);
1422 make_expect_screen_write(&expect, cursor_pos, HELLO);
1425 ASSERT(compare_screen(&tty_out, &actual, &expect));
1431 capture_screen(&tty_out, &expect);
1432 make_expect_screen_write(&expect, cursor_pos, HELLO);
1434 make_expect_screen_write(&expect, cursor_pos, HELLO);
1438 ASSERT(compare_screen(&tty_out, &actual, &expect));
1445 capture_screen(&tty_out, &expect);
1446 make_expect_screen_write(&expect, cursor_pos, HELLO);
1450 ASSERT(compare_screen(&tty_out, &actual, &expect));
1455 capture_screen(&tty_out, &expect);
1456 make_expect_screen_write(&expect, cursor_pos, HELLO);
1460 ASSERT(compare_screen(&tty_out, &actual, &expect));
1465 capture_screen(&tty_out, &expect);
1466 make_expect_screen_write(&expect, cursor_pos, HELLO);
1477 ASSERT(compare_screen(&tty_out, &actual, &expect));
1482 capture_screen(&tty_out, &expect);
1483 make_expect_screen_write(&expect, cursor_pos, HELLO);
1495 ASSERT(compare_screen(&tty_out, &actual, &expect));
1501 capture_screen(&tty_out, &expect);
1502 make_expect_screen_write(&expect, cursor_pos, HELLO);
1504 make_expect_screen_write(&expect, cursor_pos, HELLO);
1516 ASSERT(compare_screen(&tty_out, &actual, &expect));
1530 capture_screen(&tty_out, &expect);
1531 make_expect_screen_write(&expect, cursor_pos, HELLO);
1545 ASSERT(compare_screen(&tty_out, &actual, &expect));
1553 expect.si.height / 2,
1554 expect.si.width / 2);
1578 cursor_pos_old.X = expect.si.width / 2;
1579 cursor_pos_old.Y = expect.si.height / 2;
1585 expect.si.height / 4,
1586 expect.si.width / 4);
1601 capture_screen(&tty_out, &expect);
1606 ASSERT(compare_screen(&tty_out, &actual, &expect));
1609 cursor_pos.X = expect.si.width / 2;
1610 cursor_pos.Y = expect.si.height / 2;
1612 capture_screen(&tty_out, &expect);
1613 make_expect_screen_write(&expect, cursor_pos, HELLO);
1617 ASSERT(compare_screen(&tty_out, &actual, &expect));