void test_Down_not_entering_chewing() { ChewingContext *ctx; ctx = chewing_new(); start_testcase(ctx, fd); type_keystroke_by_string(ctx, "<D>"); ok_keystroke_rtn(ctx, KEYSTROKE_IGNORE); chewing_delete(ctx); }
void test_Del_in_select() { ChewingContext *ctx; ctx = chewing_new(); start_testcase(ctx, fd); type_keystroke_by_string(ctx, "`<DC>"); ok_keystroke_rtn(ctx, KEYSTROKE_ABSORB); /* XXX: shall be ignore? */ chewing_delete(ctx); }
void test_Backspace_in_select() { ChewingContext *ctx; ctx = chewing_new(); type_keystroke_by_string( ctx, "`<B>" ); ok_keystroke_rtn( ctx, KEYSTROKE_ABSORB ); /* XXX: shall be ignore? */ chewing_delete( ctx ); }
void test_Up_not_entering_chewing() { ChewingContext *ctx; ctx = chewing_new(); type_keystroke_by_string( ctx, "<U>" ); ok_keystroke_rtn( ctx, KEYSTROKE_IGNORE ); chewing_delete( ctx ); }
void test_ShiftRight_not_entering_chewing() { ChewingContext *ctx; chewing_Init( NULL, NULL ); ctx = chewing_new(); type_keystroke_by_string( ctx, "<SR>" ); ok_keystroke_rtn( ctx, KEYSTROKE_IGNORE ); chewing_delete( ctx ); chewing_Terminate(); }