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

Side by Side Diff: chrome/browser/chromeos/input_method/textinput_browsertest.cc

Issue 1114623003: Fix a few spelling errors in comments. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/chromeos/input_method/textinput_test_helper.h" 5 #include "chrome/browser/chromeos/input_method/textinput_test_helper.h"
6 #include "chrome/browser/ui/browser.h" 6 #include "chrome/browser/ui/browser.h"
7 #include "chrome/browser/ui/browser_window.h" 7 #include "chrome/browser/ui/browser_window.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
10 #include "chrome/test/base/interactive_test_utils.h" 10 #include "chrome/test/base/interactive_test_utils.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 EXPECT_EQ(ui::TEXT_INPUT_TYPE_NONE, helper.GetTextInputType()); 120 EXPECT_EQ(ui::TEXT_INPUT_TYPE_NONE, helper.GetTextInputType());
121 121
122 content::WebContents* tab = 122 content::WebContents* tab =
123 browser()->tab_strip_model()->GetActiveWebContents(); 123 browser()->tab_strip_model()->GetActiveWebContents();
124 124
125 std::string coordinate; 125 std::string coordinate;
126 ASSERT_TRUE(content::ExecuteScript( 126 ASSERT_TRUE(content::ExecuteScript(
127 tab, 127 tab,
128 "document.getElementById('text_id').focus();")); 128 "document.getElementById('text_id').focus();"));
129 129
130 // Expects PASSWORD text input type because javascript will chagne the focus 130 // Expects PASSWORD text input type because javascript will change the focus
131 // to password field in #text_id's onfocus handler. 131 // to password field in #text_id's onfocus handler.
132 helper.WaitForTextInputStateChanged(ui::TEXT_INPUT_TYPE_PASSWORD); 132 helper.WaitForTextInputStateChanged(ui::TEXT_INPUT_TYPE_PASSWORD);
133 EXPECT_EQ(ui::TEXT_INPUT_TYPE_PASSWORD, helper.GetTextInputType()); 133 EXPECT_EQ(ui::TEXT_INPUT_TYPE_PASSWORD, helper.GetTextInputType());
134 134
135 ASSERT_TRUE(helper.ClickElement("text_id", tab)); 135 ASSERT_TRUE(helper.ClickElement("text_id", tab));
136 // Expects PASSWORD text input type because javascript will chagne the focus 136 // Expects PASSWORD text input type because javascript will chagne the focus
137 // to password field in #text_id's onfocus handler. 137 // to password field in #text_id's onfocus handler.
138 helper.WaitForTextInputStateChanged(ui::TEXT_INPUT_TYPE_PASSWORD); 138 helper.WaitForTextInputStateChanged(ui::TEXT_INPUT_TYPE_PASSWORD);
139 EXPECT_EQ(ui::TEXT_INPUT_TYPE_PASSWORD, helper.GetTextInputType()); 139 EXPECT_EQ(ui::TEXT_INPUT_TYPE_PASSWORD, helper.GetTextInputType());
140 } 140 }
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 0); 296 0);
297 content::WebContents* new_tab = 297 content::WebContents* new_tab =
298 browser()->tab_strip_model()->GetActiveWebContents(); 298 browser()->tab_strip_model()->GetActiveWebContents();
299 EXPECT_NE(base_tab, new_tab); 299 EXPECT_NE(base_tab, new_tab);
300 300
301 helper.WaitForTextInputStateChanged(ui::TEXT_INPUT_TYPE_TEXT); 301 helper.WaitForTextInputStateChanged(ui::TEXT_INPUT_TYPE_TEXT);
302 EXPECT_EQ(ui::TEXT_INPUT_TYPE_TEXT, helper.GetTextInputType()); 302 EXPECT_EQ(ui::TEXT_INPUT_TYPE_TEXT, helper.GetTextInputType());
303 } 303 }
304 304
305 } // namespace chromeos 305 } // namespace chromeos
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/wallpaper/wallpaper_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698