コード例 #1
0
ファイル: test-bopomofo.c プロジェクト: PingNote/libchewing
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);
}
コード例 #2
0
ファイル: test-bopomofo.c プロジェクト: PingNote/libchewing
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);
}
コード例 #3
0
ファイル: test-bopomofo.c プロジェクト: beantu/libchewing
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 );
}
コード例 #4
0
ファイル: test-bopomofo.c プロジェクト: beantu/libchewing
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 );
}
コード例 #5
0
ファイル: test-userphrase.c プロジェクト: chiehwen/libchewing
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();
}