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

Side by Side Diff: views/controls/textfield/native_textfield_views_unittest.cc

Issue 8564015: Fix DoubleClickInterval and DragThreshold on aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable part of OverflowInRTLTest on os_win. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | views/metrics_aura.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <string> 5 #include <string>
6 #include <vector> 6 #include <vector>
7 7
8 #include "base/auto_reset.h" 8 #include "base/auto_reset.h"
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 1519 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 SendKeyEvent(ui::VKEY_A, false, true); 1530 SendKeyEvent(ui::VKEY_A, false, true);
1531 SendKeyEvent('\n'); 1531 SendKeyEvent('\n');
1532 1532
1533 for (int i = 0; i < 500; ++i) 1533 for (int i = 0; i < 500; ++i)
1534 SendKeyEvent(kHebrewLetterSamekh); 1534 SendKeyEvent(kHebrewLetterSamekh);
1535 SendKeyEvent('a'); 1535 SendKeyEvent('a');
1536 bound = GetCursorBounds(); 1536 bound = GetCursorBounds();
1537 display = GetDisplayRect(); 1537 display = GetDisplayRect();
1538 OverflowCursorBoundTestVerifier(display, bound); 1538 OverflowCursorBoundTestVerifier(display, bound);
1539 1539
1540
1541 #if !defined(OS_WIN)
1542 // TODO(jennyz): NonClientMouseClick() does not work for os_win builds;
1543 // see crbug.com/104150. The mouse click in the next test will be confused
1544 // as a double click, which breaks the test. Disable the test until the
1545 // issue is fixed.
1546 NonClientMouseClick();
1547
1540 MouseClick(bound, 1); 1548 MouseClick(bound, 1);
1541 #if defined(OS_WIN) 1549 #if defined(OS_WIN)
1542 // In Windows, the text is always in LTR directionality even in RTL UI. 1550 // In Windows, the text is always in LTR directionality even in RTL UI.
1543 // TODO(xji): it should change if we fix the directionality in Window's 1551 // TODO(xji): it should change if we fix the directionality in Window's
1544 // NativeTextfieldViews 1552 // NativeTextfieldViews
1545 EXPECT_EQ(0U, textfield_->GetCursorPosition()); 1553 EXPECT_EQ(0U, textfield_->GetCursorPosition());
1546 #else 1554 #else
1547 EXPECT_EQ(500U, textfield_->GetCursorPosition()); 1555 EXPECT_EQ(500U, textfield_->GetCursorPosition());
1548 #endif 1556 #endif
1557 #endif // !defined(OS_WIN)
1549 1558
1550 // Reset locale. 1559 // Reset locale.
1551 base::i18n::SetICUDefaultLocale(locale); 1560 base::i18n::SetICUDefaultLocale(locale);
1552 } 1561 }
1553 1562
1554 } // namespace views 1563 } // namespace views
OLDNEW
« 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