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

Issue 1108733002: Add tests for input method focusing to Widget interactive ui tests. (Closed)

Created:
5 years, 8 months ago by Shu Chen
Modified:
5 years, 7 months ago
Reviewers:
tapted, sadrul
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add tests for input method focusing to Widget interactive ui tests. BUG=474828 TES=Verified on local linux box. Committed: https://crrev.com/3709fd81eb4fe812f88c00c2b750e748f515fe31 Cr-Commit-Position: refs/heads/master@{#327286}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : add more test. #

Total comments: 6

Patch Set 5 : addressed comments. #

Patch Set 6 : guard the tests by USE_AURA #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+275 lines, -40 lines) Patch
M ui/views/widget/widget_interactive_uitest.cc View 1 2 3 4 5 6 7 8 chunks +275 lines, -40 lines 2 comments Download

Messages

Total messages: 29 (13 generated)
Shu Chen
Sadrul, can you please review this cl? Thanks
5 years, 8 months ago (2015-04-27 04:04:47 UTC) #1
Shu Chen
Sadrul, can you please review this cl? Thanks
5 years, 8 months ago (2015-04-27 15:25:12 UTC) #3
sadrul
lgtm https://codereview.chromium.org/1108733002/diff/60001/ui/views/widget/widget_interactive_uitest.cc File ui/views/widget/widget_interactive_uitest.cc (right): https://codereview.chromium.org/1108733002/diff/60001/ui/views/widget/widget_interactive_uitest.cc#newcode357 ui/views/widget/widget_interactive_uitest.cc:357: root_window2->GetHost()->GetAcceleratedWidget()); Use the new ActivatePlatformWindowSync (here and elsewhere ...
5 years, 8 months ago (2015-04-28 05:12:57 UTC) #4
Shu Chen
https://codereview.chromium.org/1108733002/diff/60001/ui/views/widget/widget_interactive_uitest.cc File ui/views/widget/widget_interactive_uitest.cc (right): https://codereview.chromium.org/1108733002/diff/60001/ui/views/widget/widget_interactive_uitest.cc#newcode357 ui/views/widget/widget_interactive_uitest.cc:357: root_window2->GetHost()->GetAcceleratedWidget()); On 2015/04/28 05:12:57, sadrul wrote: > Use the ...
5 years, 8 months ago (2015-04-28 06:46:29 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1108733002/80001
5 years, 8 months ago (2015-04-28 07:40:52 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/60031)
5 years, 8 months ago (2015-04-28 08:03:17 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1108733002/100001
5 years, 8 months ago (2015-04-28 08:36:51 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/47577)
5 years, 8 months ago (2015-04-28 09:04:59 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1108733002/120001
5 years, 8 months ago (2015-04-28 09:07:10 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/60058)
5 years, 7 months ago (2015-04-28 09:37:04 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1108733002/140001
5 years, 7 months ago (2015-04-28 14:13:14 UTC) #23
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-04-28 14:48:31 UTC) #24
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/3709fd81eb4fe812f88c00c2b750e748f515fe31 Cr-Commit-Position: refs/heads/master@{#327286}
5 years, 7 months ago (2015-04-28 14:49:19 UTC) #25
tapted
https://codereview.chromium.org/1108733002/diff/140001/ui/views/widget/widget_interactive_uitest.cc File ui/views/widget/widget_interactive_uitest.cc (right): https://codereview.chromium.org/1108733002/diff/140001/ui/views/widget/widget_interactive_uitest.cc#newcode249 ui/views/widget/widget_interactive_uitest.cc:249: void ActivatePlatformWindowSync(Widget* widget) { Hi There! I'd like to ...
5 years, 7 months ago (2015-05-01 01:54:26 UTC) #27
tapted
https://codereview.chromium.org/1108733002/diff/140001/ui/views/widget/widget_interactive_uitest.cc File ui/views/widget/widget_interactive_uitest.cc (right): https://codereview.chromium.org/1108733002/diff/140001/ui/views/widget/widget_interactive_uitest.cc#newcode249 ui/views/widget/widget_interactive_uitest.cc:249: void ActivatePlatformWindowSync(Widget* widget) { On 2015/05/01 01:54:25, tapted wrote: ...
5 years, 7 months ago (2015-05-01 09:10:17 UTC) #28
Shu Chen
5 years, 7 months ago (2015-05-05 02:30:40 UTC) #29
Message was sent while issue was closed.
On 2015/05/01 09:10:17, tapted wrote:
>
https://codereview.chromium.org/1108733002/diff/140001/ui/views/widget/widget...
> File ui/views/widget/widget_interactive_uitest.cc (right):
> 
>
https://codereview.chromium.org/1108733002/diff/140001/ui/views/widget/widget...
> ui/views/widget/widget_interactive_uitest.cc:249: void
> ActivatePlatformWindowSync(Widget* widget) {
> On 2015/05/01 01:54:25, tapted wrote:
> > Hi There! I'd like to get these tests working on Mac. I'm happy to do this.
> > 
> > First, I just had a question about the linux behaviour here -- did you first
> try
> > just `ActivateSync()` above and have it fail? (do you know why?)
> > 
> > Activation on mac is asynchronous like on Linux-desktop, which is why
> > ActivateSync came about. I'm hoping we can get all tests using the
> > cross-platform APIs in views::Widget.
> > 
> > Thanks!
> 
> Looks like ActivateSync() can do the job on Linux. I've got most things
working
> (including Mac) in https://codereview.chromium.org/1118173003/ if you'd like a
> peek. Windows is that last one to investigate, but I'll do that next week.

Thanks for catching this. Actually I don't know why ActivateSync() doesn't work
for Linux when I added the tests.
Some code was copied from desktop_window_tree_host_x11_interactive_uitest.cc
where the tests work well for linux-x11.
Just saw your CL to clean up the tests, and thanks for doing that!

Powered by Google App Engine
This is Rietveld 408576698