OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 The Chromium Authors. All rights reserved. | 2 * Copyright 2013 The Chromium Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 110 } |
111 | 111 |
112 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, TypingTest) { | 112 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, TypingTest) { |
113 RunTest(base::FilePath(FILE_PATH_LITERAL("typing_test.js"))); | 113 RunTest(base::FilePath(FILE_PATH_LITERAL("typing_test.js"))); |
114 } | 114 } |
115 | 115 |
116 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, ControlKeysTest) { | 116 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, ControlKeysTest) { |
117 RunTest(base::FilePath(FILE_PATH_LITERAL("control_keys_test.js"))); | 117 RunTest(base::FilePath(FILE_PATH_LITERAL("control_keys_test.js"))); |
118 } | 118 } |
119 | 119 |
| 120 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, HideKeyboardKeyTest) { |
| 121 RunTest(base::FilePath(FILE_PATH_LITERAL("hide_keyboard_key_test.js"))); |
| 122 } |
| 123 |
120 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, KeysetTransitionTest) { | 124 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, KeysetTransitionTest) { |
121 RunTest(base::FilePath(FILE_PATH_LITERAL("keyset_transition_test.js"))); | 125 RunTest(base::FilePath(FILE_PATH_LITERAL("keyset_transition_test.js"))); |
122 } | 126 } |
123 | 127 |
124 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, IsKeyboardLoaded) { | 128 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, IsKeyboardLoaded) { |
125 content::RenderViewHost* keyboard_rvh = GetKeyboardRenderViewHost(); | 129 content::RenderViewHost* keyboard_rvh = GetKeyboardRenderViewHost(); |
126 ASSERT_TRUE(keyboard_rvh); | 130 ASSERT_TRUE(keyboard_rvh); |
127 bool loaded = false; | 131 bool loaded = false; |
128 std::string script = "!!chrome.virtualKeyboardPrivate"; | 132 std::string script = "!!chrome.virtualKeyboardPrivate"; |
129 EXPECT_TRUE(content::ExecuteScriptAndExtractBool( | 133 EXPECT_TRUE(content::ExecuteScriptAndExtractBool( |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
162 bool success = false; | 166 bool success = false; |
163 EXPECT_TRUE(content::ExecuteScriptAndExtractBool( | 167 EXPECT_TRUE(content::ExecuteScriptAndExtractBool( |
164 browser_rvh, | 168 browser_rvh, |
165 "success ? verifyInput('a') : waitForInput('a');", | 169 "success ? verifyInput('a') : waitForInput('a');", |
166 &success)); | 170 &success)); |
167 ASSERT_TRUE(success); | 171 ASSERT_TRUE(success); |
168 } | 172 } |
169 | 173 |
170 // TODO(kevers|rsadam|bshe): Add UI tests for remaining virtual keyboard | 174 // TODO(kevers|rsadam|bshe): Add UI tests for remaining virtual keyboard |
171 // functionality. | 175 // functionality. |
OLD | NEW |