Commit b47e7752 authored by Yuichiro Hanada's avatar Yuichiro Hanada Committed by Commit Bot

Fix crash in keyboard_unittests.

Test: keyboard_unittests
Change-Id: If0144253d227b3d46813fa2e7f339359fd70874c
Reviewed-on: https://chromium-review.googlesource.com/1109602Reviewed-by: default avatarDarren Shen <shend@chromium.org>
Commit-Queue: Yuichiro Hanada <yhanada@chromium.org>
Cr-Commit-Position: refs/heads/master@{#569173}
parent 8f2591ae
......@@ -799,6 +799,9 @@ TEST_F(KeyboardControllerAnimationTest, FloatingKeyboardEnsureCaretInWorkArea) {
RunAnimationForLayer(layer);
EXPECT_TRUE(keyboard_window()->IsVisible());
// Unfocus from the MockTextInputClient before destroying it.
ui()->GetInputMethod()->DetachTextInputClient(&mock_input_client);
}
// Checks DisableKeyboard() doesn't clear the observer list.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment