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

Issue 311823002: Support ResizeSynchronously for device emulation in tests. (Closed)

Created:
6 years, 6 months ago by dgozman
Modified:
6 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Visibility:
Public.

Description

Support ResizeSynchronously for device emulation in tests. When device emulation is on, synchronous resize should go through emulator. BUG=327641

Patch Set 1 #

Patch Set 2 : Update view rects #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M content/renderer/render_widget.cc View 1 3 chunks +17 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
dgozman
dglazkov@, pfeldman@, could you please take a look? avi@, I usually asked jochen@ to look ...
6 years, 6 months ago (2014-06-10 10:30:29 UTC) #1
Avi (use Gerrit)
You have my LGTM from a context standpoint, conditional on getting approval from the area ...
6 years, 6 months ago (2014-06-10 15:34:03 UTC) #2
dglazkov
I guess I am curious: why do we need to support this synchronous resize mode? ...
6 years, 6 months ago (2014-06-10 15:36:52 UTC) #3
dgozman
On 2014/06/10 15:36:52, dglazkov wrote: > I guess I am curious: why do we need ...
6 years, 6 months ago (2014-06-10 15:48:30 UTC) #4
dglazkov
On 2014/06/10 at 15:48:30, dgozman wrote: > On 2014/06/10 15:36:52, dglazkov wrote: > > I ...
6 years, 6 months ago (2014-06-10 15:51:36 UTC) #5
dgozman
> We totally do have async window resize in layout tests! In fact, the only ...
6 years, 6 months ago (2014-06-10 15:59:07 UTC) #6
dglazkov
On 2014/06/10 at 15:59:07, dgozman wrote: > > We totally do have async window resize ...
6 years, 6 months ago (2014-06-10 16:08:18 UTC) #7
Avi (use Gerrit)
On 2014/06/10 16:08:18, dglazkov wrote: > On 2014/06/10 at 15:59:07, dgozman wrote: > > > ...
6 years, 6 months ago (2014-06-10 16:10:38 UTC) #8
dgozman
> Got it. Hacky idea first -- can we not turn this into a popup ...
6 years, 6 months ago (2014-06-10 16:15:42 UTC) #9
dglazkov
6 years, 6 months ago (2014-06-10 16:20:12 UTC) #10
On 2014/06/10 at 16:10:38, avi wrote:
> On 2014/06/10 16:08:18, dglazkov wrote:
> > On 2014/06/10 at 15:59:07, dgozman wrote:
> > > > We totally do have async window resize in layout tests! In fact, the
only
> > time
> > > > it's not async is when we use the "unfortunate mode" setting. Now, there
> > could
> > > > be bugs that prevent you from accomplishing what's necessary for this
> > scenario
> > > > -- we should totally fix those. Help me understand the problem a bit
better?
> > > 
> > > I've traced async resize when writing layout test, and it did nothing
because
> > the window is not a popup nor a panel. See
> >
https://code.google.com/p/chromium/codesearch#chromium/src/content/browser/we....
> > > Therefore, WebViewImpl was not resized, and test failed.
> > 
> > Got it. Hacky idea first -- can we not turn this into a popup test? Use
> > window.open to create the window and take it from there?
> > 
> > Another question is why the resize doesn't work for anything other than
popup or
> > panel. Avi, do you happen to know?
> 
> Sorry, no idea.

Here's the answer: https://code.google.com/p/chromium/issues/detail?id=2091.
Thus, the "right" solutions are:

1) Turn the test into creating a popup window and resizing it from there.
2) Expose testRunner.resize that emulates user resizing the window.

Powered by Google App Engine
This is Rietveld 408576698