Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: chrome/browser/chromeos/extensions/virtual_keyboard_browsertest.cc

Issue 98073012: Add unit test for lock and unlock virtual keyboard feature (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 }; 106 };
107 107
108 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, TypingTest) { 108 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, TypingTest) {
109 RunTest(base::FilePath(FILE_PATH_LITERAL("typing_test.js"))); 109 RunTest(base::FilePath(FILE_PATH_LITERAL("typing_test.js")));
110 } 110 }
111 111
112 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, ControlKeysTest) { 112 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, ControlKeysTest) {
113 RunTest(base::FilePath(FILE_PATH_LITERAL("control_keys_test.js"))); 113 RunTest(base::FilePath(FILE_PATH_LITERAL("control_keys_test.js")));
114 } 114 }
115 115
116 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, HideKeyboardKeyTest) {
117 RunTest(base::FilePath(FILE_PATH_LITERAL("hide_keyboard_key_test.js")));
118 }
119
116 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, KeysetTransitionTest) { 120 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, KeysetTransitionTest) {
117 RunTest(base::FilePath(FILE_PATH_LITERAL("keyset_transition_test.js"))); 121 RunTest(base::FilePath(FILE_PATH_LITERAL("keyset_transition_test.js")));
118 } 122 }
119 123
120 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, IsKeyboardLoaded) { 124 IN_PROC_BROWSER_TEST_F(VirtualKeyboardBrowserTest, IsKeyboardLoaded) {
121 content::RenderViewHost* keyboard_rvh = GetKeyboardRenderViewHost(); 125 content::RenderViewHost* keyboard_rvh = GetKeyboardRenderViewHost();
122 ASSERT_TRUE(keyboard_rvh); 126 ASSERT_TRUE(keyboard_rvh);
123 bool loaded = false; 127 bool loaded = false;
124 std::string script = "!!chrome.virtualKeyboardPrivate"; 128 std::string script = "!!chrome.virtualKeyboardPrivate";
125 EXPECT_TRUE(content::ExecuteScriptAndExtractBool( 129 EXPECT_TRUE(content::ExecuteScriptAndExtractBool(
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 bool success = false; 162 bool success = false;
159 EXPECT_TRUE(content::ExecuteScriptAndExtractBool( 163 EXPECT_TRUE(content::ExecuteScriptAndExtractBool(
160 browser_rvh, 164 browser_rvh,
161 "success ? verifyInput('a') : waitForInput('a');", 165 "success ? verifyInput('a') : waitForInput('a');",
162 &success)); 166 &success));
163 ASSERT_TRUE(success); 167 ASSERT_TRUE(success);
164 } 168 }
165 169
166 // TODO(kevers|rsadam|bshe): Add UI tests for remaining virtual keyboard 170 // TODO(kevers|rsadam|bshe): Add UI tests for remaining virtual keyboard
167 // functionality. 171 // functionality.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698