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

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 6 years, 11 months 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
« no previous file with comments | « no previous file | chrome/test/data/chromeos/virtual_keyboard/control_keys_test.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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.
OLDNEW
« no previous file with comments | « no previous file | chrome/test/data/chromeos/virtual_keyboard/control_keys_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698