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

Issue 3117030: Adds ui_test_utils::SendAndWaitForKeyPress and converts callers (where (Closed)

Created:
10 years, 4 months ago by sky
Modified:
9 years, 7 months ago
Reviewers:
Paweł Hajdan Jr.
CC:
chromium-reviews, ben+cc_chromium.org, nkostylev+cc_chromium.org, davemoore+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Adds ui_test_utils::SendAndWaitForKeyPress and converts callers (where appropriate) to use it. Hopefully this will help isolate why tests are failing on bot. BUG=none TEST=none; test only change. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57064

Patch Set 1 #

Patch Set 2 : Cleanup docs and fix chromeos #

Total comments: 2

Patch Set 3 : Addressed review comments #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -77 lines) Patch
M chrome/browser/autocomplete/autocomplete_edit_view_browsertest.cc View 1 2 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/automation/ui_controls.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/browser_focus_uitest.cc View 1 2 9 chunks +32 lines, -39 lines 0 comments Download
M chrome/browser/browser_keyevents_browsertest.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/views/find_bar_host_interactive_uitest.cc View 1 2 4 chunks +14 lines, -25 lines 0 comments Download
M chrome/test/in_process_browser_test.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/test/ui_test_utils.h View 1 2 3 chunks +14 lines, -1 line 1 comment Download
M chrome/test/ui_test_utils.cc View 1 2 2 chunks +19 lines, -0 lines 2 comments Download

Messages

Total messages: 6 (0 generated)
sky
10 years, 4 months ago (2010-08-20 20:41:27 UTC) #1
Paweł Hajdan Jr.
I don't really understand how this change helps. Please remember we still have a timeout ...
10 years, 4 months ago (2010-08-20 21:51:13 UTC) #2
sky
On Fri, Aug 20, 2010 at 2:51 PM, <phajdan.jr@chromium.org> wrote: > I don't really understand ...
10 years, 4 months ago (2010-08-20 21:56:57 UTC) #3
Paweł Hajdan Jr.
On Fri, Aug 20, 2010 at 14:56, Scott Violet <sky@chromium.org> wrote: > On Fri, Aug ...
10 years, 4 months ago (2010-08-20 21:58:56 UTC) #4
sky
Good idea. New patch uploaded -Scott
10 years, 4 months ago (2010-08-20 23:02:53 UTC) #5
Paweł Hajdan Jr.
10 years, 4 months ago (2010-08-21 02:44:27 UTC) #6
LGTM with some comments.

http://codereview.chromium.org/3117030/diff/9001/10007
File chrome/test/ui_test_utils.cc (right):

http://codereview.chromium.org/3117030/diff/9001/10007#newcode562
chrome/test/ui_test_utils.cc:562: DLOG(ERROR) <<
"ui_controls::SendKeyPressNotifyWhenDone failed";
nit: You can consider using LOG instead of DLOG here. We should rarely enter the
failure case. Up to you.

http://codereview.chromium.org/3117030/diff/9001/10007#newcode565
chrome/test/ui_test_utils.cc:565: // Run the message loop, it'll quit because
either the key was received or the
nit: I think this comment is confusing. I'd rather remove it, but if you think
it should really be there, that's fine.

http://codereview.chromium.org/3117030/diff/9001/10008
File chrome/test/ui_test_utils.h (right):

http://codereview.chromium.org/3117030/diff/9001/10008#newcode195
chrome/test/ui_test_utils.h:195: // The proper way to use this in a test is:
nit: I suggest to remove the "The proper way to use ..." part, because the
compiler is going to issue a warning about that on Linux and Mac.

Powered by Google App Engine
This is Rietveld 408576698