# Enable IME
SEND_KEY	ON
RESET_CONTEXT

# commit "もずく" from composition
# commit "もずく" from first conversion (no window)
# commit "モズク" from second conversion
# commit "モズク" from suggestion
# commit "モズク" from prediction
# convert "もずく"  and continue next input
# select "モズク" from prediction and continue next input
# select "モズク" from prediction and continue next input
# commit "もずく"

SEND_KEYS	mozuku
EXPECT_PREEDIT	もずく
SEND_KEY	ENTER

SEND_KEYS	mozuku
SEND_KEY	SPACE
EXPECT_PREEDIT	もずく
SEND_KEY	ENTER

SEND_KEYS	mozuku
SEND_KEY	SPACE
SEND_KEY	SPACE
EXPECT_PREEDIT	モズク
SEND_KEY	ENTER

SEND_KEYS	mozuku
SEND_KEY	SHIFT ENTER

SEND_KEYS	mozuku
SEND_KEY	TAB
EXPECT_PREEDIT	モズク
SEND_KEY	ENTER

SEND_KEYS	mozuku
SEND_KEY	SPACE
EXPECT_PREEDIT	モズク

SEND_KEYS	mozuku
SEND_KEY	TAB
EXPECT_PREEDIT	モズク

SEND_KEYS	mozuku
SEND_KEY	TAB
EXPECT_PREEDIT	モズク

SEND_KEYS	mozuku
EXPECT_PREEDIT	もずく
SEND_KEY	ENTER


EXPECT_USAGE_STATS_COUNT	ConsumedSendKey	68
EXPECT_USAGE_STATS_COUNT	UnconsumedSendKey	0
EXPECT_USAGE_STATS_COUNT	Commit	9
EXPECT_USAGE_STATS_COUNT	CommitFromConversion	3
EXPECT_USAGE_STATS_COUNT	CommitFromPrediction	4
EXPECT_USAGE_STATS_COUNT	CommitFromComposition	2
EXPECT_USAGE_STATS_COUNT	CommitFromUnknown	0

EXPECT_USAGE_STATS_COUNT	ConversionCandidates0	2
EXPECT_USAGE_STATS_COUNT	ConversionCandidates1	1
EXPECT_USAGE_STATS_COUNT	ConversionCandidates2	0
EXPECT_USAGE_STATS_COUNT	ConversionCandidates3	0
EXPECT_USAGE_STATS_COUNT	ConversionCandidates4	0
EXPECT_USAGE_STATS_COUNT	ConversionCandidates5	0
EXPECT_USAGE_STATS_COUNT	ConversionCandidatesGE10	0

EXPECT_USAGE_STATS_COUNT	TransliterationCandidates0	0
EXPECT_USAGE_STATS_COUNT	TransliterationCandidates1	0
EXPECT_USAGE_STATS_COUNT	TransliterationCandidates2	0
EXPECT_USAGE_STATS_COUNT	TransliterationCandidates3	0
EXPECT_USAGE_STATS_COUNT	TransliterationCandidates4	0
EXPECT_USAGE_STATS_COUNT	TransliterationCandidates5	0
EXPECT_USAGE_STATS_COUNT	TransliterationCandidatesGE10	0

EXPECT_USAGE_STATS_COUNT	PredictionCandidates0	4
EXPECT_USAGE_STATS_COUNT	PredictionCandidates1	0
EXPECT_USAGE_STATS_COUNT	PredictionCandidates2	0
EXPECT_USAGE_STATS_COUNT	PredictionCandidates3	0
EXPECT_USAGE_STATS_COUNT	PredictionCandidates4	0
EXPECT_USAGE_STATS_COUNT	PredictionCandidates5	0
EXPECT_USAGE_STATS_COUNT	PredictionCandidatesGE10	0

EXPECT_USAGE_STATS_COUNT	MouseSelect	0
EXPECT_USAGE_STATS_COUNT	BackSpaceAfterCommit	0

EXPECT_USAGE_STATS_TIMING	SubmittedSegmentLengthx1000	27000	9	3000	3000
EXPECT_USAGE_STATS_TIMING	SubmittedSegmentNumberx1000	9000	9	1000	1000
EXPECT_USAGE_STATS_TIMING	SubmittedLengthx1000	27000	9	3000	3000
EXPECT_USAGE_STATS_COUNT	SubmittedTotalLength	27
