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

Unified Diff: views/controls/textfield/native_textfield_views_unittest.cc

Issue 8524008: Fix the double/tripple click behavior of NataiveTextfieldViews objects. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a comment for code review comments. Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | views/metrics_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/textfield/native_textfield_views_unittest.cc
diff --git a/views/controls/textfield/native_textfield_views_unittest.cc b/views/controls/textfield/native_textfield_views_unittest.cc
index f3a046aac875911f89685bce48a0822cec681c19..6461f0e252d39c2e9653ce844ad2946356e32acf 100644
--- a/views/controls/textfield/native_textfield_views_unittest.cc
+++ b/views/controls/textfield/native_textfield_views_unittest.cc
@@ -1537,6 +1537,11 @@ TEST_F(NativeTextfieldViewsTest, OverflowInRTLTest) {
display = GetDisplayRect();
OverflowCursorBoundTestVerifier(display, bound);
+ // Sleep 1 second to simulate another single click.
+ // TODO(jennyz): NonClientMouseClick() does not work for win_aura build;
+ // see crbug.con/104150. Should replace the Sleep() call with
+ // NonClientMouseClick() once the bug is fixed.
+ base::PlatformThread::Sleep(1000);
MouseClick(bound, 1);
#if defined(OS_WIN)
// In Windows, the text is always in LTR directionality even in RTL UI.
« no previous file with comments | « no previous file | views/metrics_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698