Lines Matching refs:expect

35 #define expect(expected, got) ok(expected == got, "Expected %d, got %d\n", expected, got);  macro
295 expect(0, st[0].wDayOfWeek); in test_monthcal()
296 expect(0, st[0].wHour); in test_monthcal()
297 expect(0, st[0].wMinute); in test_monthcal()
298 expect(0, st[0].wSecond); in test_monthcal()
299 expect(0, st[0].wMilliseconds); in test_monthcal()
301 expect(0, st[1].wYear); in test_monthcal()
302 expect(0, st[1].wMonth); in test_monthcal()
303 expect(0, st[1].wDay); in test_monthcal()
304 expect(0, st[1].wDayOfWeek); in test_monthcal()
305 expect(0, st[1].wHour); in test_monthcal()
306 expect(0, st[1].wMinute); in test_monthcal()
307 expect(0, st[1].wSecond); in test_monthcal()
308 expect(0, st[1].wMilliseconds); in test_monthcal()
325 expect(today.wHour, st[1].wHour); in test_monthcal()
326 expect(today.wMinute, st[1].wMinute); in test_monthcal()
327 expect(today.wSecond, st[1].wSecond); in test_monthcal()
328 expect(1200, st[1].wMilliseconds); in test_monthcal()
333 expect(today.wHour, st1[1].wHour); in test_monthcal()
334 expect(today.wMinute, st1[1].wMinute); in test_monthcal()
335 expect(today.wSecond, st1[1].wSecond); in test_monthcal()
336 expect(1200, st1[1].wMilliseconds); in test_monthcal()
345 expect(st[0].wHour, st[1].wHour); in test_monthcal()
346 expect(st[0].wMinute, st[1].wMinute); in test_monthcal()
347 expect(st[0].wSecond, st[1].wSecond); in test_monthcal()
348 expect(1200, st[1].wMilliseconds); in test_monthcal()
414 expect(0, st1[0].wYear); in test_monthcal()
415 expect(0, st1[0].wMonth); in test_monthcal()
416 expect(0, st1[0].wDay); in test_monthcal()
417 expect(0, st1[0].wDayOfWeek); in test_monthcal()
418 expect(0, st1[0].wHour); in test_monthcal()
419 expect(0, st1[0].wMinute); in test_monthcal()
420 expect(0, st1[0].wSecond); in test_monthcal()
421 expect(0, st1[0].wMilliseconds); in test_monthcal()
423 expect(st[1].wYear, st1[1].wYear); in test_monthcal()
424 expect(st[1].wMonth, st1[1].wMonth); in test_monthcal()
425 expect(st[1].wDay, st1[1].wDay); in test_monthcal()
426 expect(st[1].wDayOfWeek, st1[1].wDayOfWeek); in test_monthcal()
427 expect(st[1].wHour, st1[1].wHour); in test_monthcal()
428 expect(st[1].wMinute, st1[1].wMinute); in test_monthcal()
429 expect(st[1].wSecond, st1[1].wSecond); in test_monthcal()
430 expect(st[1].wMilliseconds, st1[1].wMilliseconds); in test_monthcal()
441 expect(st[0].wYear, st1[0].wYear); in test_monthcal()
442 expect(st[0].wMonth, st1[0].wMonth); in test_monthcal()
443 expect(st[0].wDay, st1[0].wDay); in test_monthcal()
444 expect(st[0].wDayOfWeek, st1[0].wDayOfWeek); in test_monthcal()
445 expect(st[0].wHour, st1[0].wHour); in test_monthcal()
446 expect(st[0].wMinute, st1[0].wMinute); in test_monthcal()
447 expect(st[0].wSecond, st1[0].wSecond); in test_monthcal()
448 expect(st[0].wMilliseconds, st1[0].wMilliseconds); in test_monthcal()
450 expect(0, st1[1].wYear); in test_monthcal()
451 expect(0, st1[1].wMonth); in test_monthcal()
452 expect(0, st1[1].wDay); in test_monthcal()
453 expect(0, st1[1].wDayOfWeek); in test_monthcal()
454 expect(0, st1[1].wHour); in test_monthcal()
455 expect(0, st1[1].wMinute); in test_monthcal()
456 expect(0, st1[1].wSecond); in test_monthcal()
457 expect(0, st1[1].wMilliseconds); in test_monthcal()
550 expect(st[0].wYear, nmchg->stSelStart.wYear); in parent_wnd_proc()
551 expect(st[0].wMonth, nmchg->stSelStart.wMonth); in parent_wnd_proc()
552 expect(0, nmchg->stSelStart.wDayOfWeek); in parent_wnd_proc()
553 expect(st[0].wDay, nmchg->stSelStart.wDay); in parent_wnd_proc()
557 expect(st[1].wYear, nmchg->stSelEnd.wYear); in parent_wnd_proc()
558 expect(st[1].wMonth, nmchg->stSelEnd.wMonth); in parent_wnd_proc()
559 expect(0, nmchg->stSelEnd.wDayOfWeek); in parent_wnd_proc()
560 expect(st[1].wDay, nmchg->stSelEnd.wDay); in parent_wnd_proc()
689 expect(~0u, color); in test_color()
691 expect(~0u, prev); in test_color()
695 expect(color, prev); in test_color()
697 expect(RGB(0,0,0), color); in test_color()
699 expect(color, prev); in test_color()
701 expect(RGB(255,255,255), color); in test_color()
705 expect(color, prev); in test_color()
707 expect(RGB(0,0,0), color); in test_color()
709 expect(color, prev); in test_color()
711 expect(RGB(255,255,255), color); in test_color()
715 expect(color, prev); in test_color()
717 expect(RGB(0,0,0), color); in test_color()
719 expect(color, prev); in test_color()
721 expect(RGB(255,255,255), color); in test_color()
725 expect(color, prev); in test_color()
727 expect(RGB(0,0,0), color); in test_color()
729 expect(color, prev); in test_color()
731 expect(RGB(255,255,255), color); in test_color()
735 expect(color, prev); in test_color()
737 expect(RGB(0,0,0), color); in test_color()
739 expect(color, prev); in test_color()
741 expect(RGB(255,255,255), color); in test_color()
745 expect(color, prev); in test_color()
747 expect(RGB(0,0,0), color); in test_color()
749 expect(color, prev); in test_color()
751 expect(RGB(255,255,255), color); in test_color()
780 expect(1,res); in test_currdate()
785 expect(0,res); in test_currdate()
789 expect(st_original.wDay, st_test.wDay); in test_currdate()
794 expect(0,res); in test_currdate()
805 expect(1, res); in test_currdate()
809 expect(st_original.wYear, st_new.wYear); in test_currdate()
810 expect(st_original.wMonth, st_new.wMonth); in test_currdate()
811 expect(st_original.wDay, st_new.wDay); in test_currdate()
824 expect(0, res); in test_currdate()
834 expect(1, res); in test_currdate()
837 expect(1, res); in test_currdate()
838 expect(st_new.wYear, st_test.wYear); in test_currdate()
839 expect(st_new.wMonth, st_test.wMonth); in test_currdate()
840 expect(st_new.wDay, st_test.wDay); in test_currdate()
841 expect(st_new.wHour, st_test.wHour); in test_currdate()
842 expect(st_new.wMinute, st_test.wMinute); in test_currdate()
843 expect(st_new.wSecond, st_test.wSecond); in test_currdate()
857 expect(1, res); in test_currdate()
858 expect(st_original.wYear, st_test.wYear); in test_currdate()
859 expect(st_original.wMonth, st_test.wMonth); in test_currdate()
860 expect(st_original.wDay, st_test.wDay); in test_currdate()
861 expect(st_original.wHour, st_test.wHour); in test_currdate()
862 expect(st_original.wMinute, st_test.wMinute); in test_currdate()
863 expect(st_original.wSecond, st_test.wSecond); in test_currdate()
872 expect(1, res); in test_currdate()
878 expect(1, res); in test_currdate()
881 expect(1, res); in test_currdate()
890 expect(1, res); in test_currdate()
894 expect(1, res); in test_currdate()
895 expect(2009, st_test.wYear); in test_currdate()
896 expect(7, st_test.wDay); in test_currdate()
897 expect(10, st_test.wMonth); in test_currdate()
898 expect(3, st_test.wDayOfWeek); in test_currdate()
930 expect(fday, res); in test_firstDay()
937 expect(prev, res); in test_firstDay()
942 expect(MAKELONG(fday, FALSE), res); in test_firstDay()
945 expect(MAKELONG(6, TRUE), res); in test_firstDay()
947 expect(MAKELONG(i, TRUE), res); in test_firstDay()
976 expect(temp, res); in test_unicode()
992 expect(0, res); in test_unicode()
996 expect(0, res); in test_unicode()
1042 expect(0, mchit.pt.x); in test_hittest()
1043 expect(0, mchit.pt.y); in test_hittest()
1044 expect(~0u, res); in test_hittest()
1045 expect(0, mchit.uHit); in test_hittest()
1048 expect(~0u, res); in test_hittest()
1072 expect(1,res); in test_hittest()
1079 expect(0, mchit.pt.x); in test_hittest()
1080 expect(0, mchit.pt.y); in test_hittest()
1081 expect(mchit.uHit, res); in test_hittest()
1088 expect(r.right, mchit.pt.x); in test_hittest()
1089 expect(r.bottom, mchit.pt.y); in test_hittest()
1090 expect(mchit.uHit, res); in test_hittest()
1097 expect(2 * r.right, mchit.pt.x); in test_hittest()
1098 expect(2 * r.bottom, mchit.pt.y); in test_hittest()
1099 expect(mchit.uHit, res); in test_hittest()
1106 expect(r.right / 2, mchit.pt.x); in test_hittest()
1107 expect(r.bottom / 2, mchit.pt.y); in test_hittest()
1108 expect(mchit.uHit, res); in test_hittest()
1115 expect(r.right / 14, mchit.pt.x); in test_hittest()
1116 expect(r.bottom / 2, mchit.pt.y); in test_hittest()
1117 expect(mchit.uHit, res); in test_hittest()
1124 expect(r.right / 14, mchit.pt.x); in test_hittest()
1125 expect(6 * r.bottom / 19, mchit.pt.y); in test_hittest()
1126 expect(mchit.uHit, res); in test_hittest()
1135 expect(125, mchit.pt.x); in test_hittest()
1136 expect(115, mchit.pt.y); in test_hittest()
1137 expect(mchit.uHit, res); in test_hittest()
1138 expect(MCHT_CALENDARDATE, res); in test_hittest()
1145 expect(11 * r.right / 14, mchit.pt.x); in test_hittest()
1146 expect(16 * r.bottom / 19, mchit.pt.y); in test_hittest()
1147 expect(mchit.uHit, res); in test_hittest()
1154 expect(r.right / 14, mchit.pt.x); in test_hittest()
1155 expect(18 * r.bottom / 19, mchit.pt.y); in test_hittest()
1156 expect(mchit.uHit, res); in test_hittest()
1163 expect(r.right / 2, mchit.pt.x); in test_hittest()
1164 expect(18 * r.bottom / 19, mchit.pt.y); in test_hittest()
1165 expect(mchit.uHit, res); in test_hittest()
1172 expect(r.right / 10, mchit.pt.x); in test_hittest()
1173 expect(18 * r.bottom / 19, mchit.pt.y); in test_hittest()
1174 expect(mchit.uHit, res); in test_hittest()
1200 expect(x, mchit.pt.x); in test_hittest()
1201 expect((5/2) * r.bottom / 19, mchit.pt.y); in test_hittest()
1202 expect(mchit.uHit, res); in test_hittest()
1262 expect(1, res); in test_todaylink()
1272 expect(r.right / 14, mchit.pt.x); in test_todaylink()
1273 expect(18 * r.bottom / 19, mchit.pt.y); in test_todaylink()
1274 expect(mchit.uHit, res); in test_todaylink()
1275 expect(MCHT_TODAYLINK, res); in test_todaylink()
1282 expect(0, res); in test_todaylink()
1286 expect(1, res); in test_todaylink()
1287 expect(1, st_new.wDay); in test_todaylink()
1288 expect(1, st_new.wMonth); in test_todaylink()
1289 expect(2005, st_new.wYear); in test_todaylink()
1292 expect(0, res); in test_todaylink()
1296 expect(1, res); in test_todaylink()
1297 expect(1, st_new.wDay); in test_todaylink()
1298 expect(1, st_new.wMonth); in test_todaylink()
1299 expect(2005, st_new.wYear); in test_todaylink()
1327 expect(0, res); in test_today()
1330 expect(1, res); in test_today()
1333 expect(38, st_test.wDay); in test_today()
1334 expect(38, st_test.wMonth); in test_today()
1337 expect(38, st_new.wDay); in test_today()
1338 expect(38, st_new.wMonth); in test_today()
1345 expect(0, res); in test_today()
1348 expect(1, res); in test_today()
1351 expect(0, st_test.wDay); in test_today()
1352 expect(0, st_test.wMonth); in test_today()
1355 expect(0, st_new.wDay); in test_today()
1356 expect(0, st_new.wMonth); in test_today()
1371 expect(2, res); in test_scroll()
1377 expect(0, res); in test_scroll()
1380 expect(2, res); in test_scroll()
1382 expect(3, res); in test_scroll()
1385 expect(3, res); in test_scroll()
1387 expect(12, res); in test_scroll()
1390 expect(12, res); in test_scroll()
1392 expect(15, res); in test_scroll()
1395 expect(15, res); in test_scroll()
1397 expect(-5, res); in test_scroll()
1426 expect(1,res); in test_monthrange()
1432 expect(TRUE, res); in test_monthrange()
1439 expect(2, res); in test_monthrange()
1440 expect(2000, st_visible[0].wYear); in test_monthrange()
1441 expect(11, st_visible[0].wMonth); in test_monthrange()
1442 expect(1, st_visible[0].wDay); in test_monthrange()
1443 expect(2000, st_visible[1].wYear); in test_monthrange()
1444 expect(12, st_visible[1].wMonth); in test_monthrange()
1445 expect(31, st_visible[1].wDay); in test_monthrange()
1448 expect(4, res); in test_monthrange()
1449 expect(2000, st_daystate[0].wYear); in test_monthrange()
1450 expect(10, st_daystate[0].wMonth); in test_monthrange()
1451 expect(29, st_daystate[0].wDay); in test_monthrange()
1452 expect(2001, st_daystate[1].wYear); in test_monthrange()
1453 expect(1, st_daystate[1].wMonth); in test_monthrange()
1454 expect(6, st_daystate[1].wDay); in test_monthrange()
1460 expect(2, res); in test_monthrange()
1463 expect(4, res); in test_monthrange()
1474 expect(1, res); in test_monthrange()
1478 expect(1, res); in test_monthrange()
1480 expect(1752, st_visible[0].wYear); in test_monthrange()
1481 expect(9, st_visible[0].wMonth); in test_monthrange()
1486 expect(1752, st_visible[1].wYear); in test_monthrange()
1487 expect(9, st_visible[1].wMonth); in test_monthrange()
1488 expect(19, st_visible[1].wDay); in test_monthrange()
1502 expect(1, res); in test_maxselday()
1504 expect(0, res); in test_maxselday()
1506 expect(1, res); in test_maxselday()
1527 expect(7, res); in test_maxselday()
1533 expect(1, res); in test_maxselday()
1535 expect(5, res); in test_maxselday()
1538 expect(1, res); in test_maxselday()
1540 expect(15, res); in test_maxselday()
1544 expect(0, res); in test_maxselday()
1546 expect(15, res); in test_maxselday()
1552 expect(0, res); in test_maxselday()
1554 expect(15, res); in test_maxselday()
1639 expect(TRUE, ret); in test_selrange()
1643 expect(TRUE, ret); in test_selrange()
1644 expect(st.wYear, range[0].wYear); in test_selrange()
1645 expect(st.wMonth, range[0].wMonth); in test_selrange()
1646 expect(st.wDay, range[0].wDay); in test_selrange()
1654 expect(st.wDayOfWeek, range[0].wDayOfWeek); in test_selrange()
1655 expect(st.wHour, range[0].wHour); in test_selrange()
1656 expect(st.wMinute, range[0].wMinute); in test_selrange()
1657 expect(st.wSecond, range[0].wSecond); in test_selrange()
1658 expect(st.wMilliseconds, range[0].wMilliseconds); in test_selrange()
1661 expect(st.wYear, range[1].wYear); in test_selrange()
1662 expect(st.wMonth, range[1].wMonth); in test_selrange()
1663 expect(st.wDay, range[1].wDay); in test_selrange()
1666 expect(st.wDayOfWeek, range[1].wDayOfWeek); in test_selrange()
1667 expect(st.wHour, range[1].wHour); in test_selrange()
1668 expect(st.wMinute, range[1].wMinute); in test_selrange()
1669 expect(st.wSecond, range[1].wSecond); in test_selrange()
1670 expect(st.wMilliseconds, range[1].wMilliseconds); in test_selrange()
1682 expect(TRUE, ret); in test_selrange()
1685 expect(TRUE, ret); in test_selrange()
1687 expect(range[1].wYear, range2[0].wYear); in test_selrange()
1688 expect(range[1].wMonth, range2[0].wMonth); in test_selrange()
1689 expect(range[1].wDay, range2[0].wDay); in test_selrange()
1690 expect(6, range2[0].wDayOfWeek); in test_selrange()
1691 expect(range[1].wHour, range2[0].wHour); in test_selrange()
1692 expect(range[1].wMinute, range2[0].wMinute); in test_selrange()
1693 expect(range[1].wSecond, range2[0].wSecond); in test_selrange()
1694 expect(range[1].wMilliseconds, range2[0].wMilliseconds); in test_selrange()
1696 expect(range[0].wYear, range2[1].wYear); in test_selrange()
1697 expect(range[0].wMonth, range2[1].wMonth); in test_selrange()
1698 expect(range[0].wDay, range2[1].wDay); in test_selrange()
1699 expect(1, range2[1].wDayOfWeek); in test_selrange()
1700 expect(range[0].wHour, range2[1].wHour); in test_selrange()
1701 expect(range[0].wMinute, range2[1].wMinute); in test_selrange()
1702 expect(range[0].wSecond, range2[1].wSecond); in test_selrange()
1703 expect(range[0].wMilliseconds, range2[1].wMilliseconds); in test_selrange()
1713 expect(TRUE, ret); in test_selrange()
1720 expect(FALSE, ret); in test_selrange()
1723 expect(TRUE, ret); in test_selrange()
1725 expect(range[0].wYear, range2[0].wYear); in test_selrange()
1726 expect(range[0].wMonth, range2[0].wMonth); in test_selrange()
1727 expect(range[0].wDay, range2[0].wDay); in test_selrange()
1728 expect(range[0].wYear, range2[1].wYear); in test_selrange()
1729 expect(range[0].wMonth, range2[1].wMonth); in test_selrange()
1730 expect(range[0].wDay, range2[1].wDay); in test_selrange()
1783 expect(-1, mchit.iOffset); in test_hittest_v6()
1784 expect(-1, mchit.iRow); in test_hittest_v6()
1785 expect(-1, mchit.iCol); in test_hittest_v6()
1793 expect(0, mchit.iOffset); in test_hittest_v6()
1805 expect(0, mchit.iOffset); in test_hittest_v6()
1806 expect(2, mchit.iRow); in test_hittest_v6()
1807 expect(0, mchit.iCol); in test_hittest_v6()
1822 expect(0, mchit.iOffset); in test_hittest_v6()
1823 expect(-1, mchit.iRow); in test_hittest_v6()
1824 expect(-1, mchit.iCol); in test_hittest_v6()
1825 expect(0, mchit.rc.left); in test_hittest_v6()
1826 expect(0, mchit.rc.top); in test_hittest_v6()
1841 expect(-2, mchit.iOffset); in test_hittest_v6()
1842 expect(-2, mchit.iRow); in test_hittest_v6()
1843 expect(-2, mchit.iCol); in test_hittest_v6()
1844 todo_wine expect(0, mchit.rc.left); in test_hittest_v6()
1845 todo_wine expect(0, mchit.rc.top); in test_hittest_v6()
1861 expect(0, ret); in test_get_set_border()
1872 expect(10, ret); in test_get_set_border()
1935 expect(2, ret); in test_MCM_GETCALENDARCOUNT()
1951 expect(TRUE, ret); in test_daystate()
1957 expect(4, ret); in test_daystate()
1960 expect(0, ret); in test_daystate()
1963 expect(0, ret); in test_daystate()
1966 expect(0, ret); in test_daystate()
1979 expect(4, ret); in test_daystate()
1982 expect(1, ret); in test_daystate()
1985 expect(0, ret); in test_daystate()
1988 expect(0, ret); in test_daystate()