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

Issue 11362161: Use the WebTestProxy for layout tests in content_shell (Closed)

Created:
8 years, 1 month ago by jochen (gone - plz use gerrit)
Modified:
8 years, 1 month ago
Reviewers:
jam
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Use the WebTestProxy for layout tests in content_shell - Add a hook to the content renderer client to allow embedders to override the creation of RenderViewImpls. To simplify this, I consolidate the parameters passed to RVI's constructor into a struct. - Add a content_layouttest_support library that provides a method for creating a modified RenderViewImpl suitable for running layout tests. - Use above library from the content_shell. BUG=111316 TEST=almost all accessibility tests pass. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=167341

Patch Set 1 #

Total comments: 2

Patch Set 2 : version that doesn't expose RenderViewImpl in public API #

Total comments: 9

Patch Set 3 : updates #

Patch Set 4 : updates #

Total comments: 3

Patch Set 5 : updates #

Patch Set 6 : updates #

Patch Set 7 : patch for landing #

Patch Set 8 : patch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+266 lines, -61 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/content_shell.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M content/content_tests.gypi View 1 2 3 4 5 6 7 3 chunks +3 lines, -0 lines 0 comments Download
A content/public/test/layouttest_support.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
M content/renderer/render_view_impl.h View 1 2 3 5 chunks +22 lines, -26 lines 0 comments Download
M content/renderer/render_view_impl.cc View 1 2 3 4 5 6 7 12 chunks +36 lines, -33 lines 0 comments Download
A content/renderer/render_view_impl_params.h View 1 2 1 chunk +61 lines, -0 lines 0 comments Download
A content/renderer/render_view_impl_params.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
M content/shell/shell_content_renderer_client.h View 1 2 chunks +8 lines, -0 lines 0 comments Download
M content/shell/shell_content_renderer_client.cc View 1 2 3 chunks +22 lines, -2 lines 0 comments Download
M content/shell/shell_main_delegate.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M content/shell/shell_render_process_observer.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/test/DEPS View 1 1 chunk +1 line, -0 lines 0 comments Download
A content/test/layouttest_support.cc View 1 2 1 chunk +40 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
jochen (gone - plz use gerrit)
plz review This depends on https://bugs.webkit.org/show_bug.cgi?id=101452
8 years, 1 month ago (2012-11-08 16:00:45 UTC) #1
jam
https://codereview.chromium.org/11362161/diff/1/content/layouttest_support/content_layouttest_support.cc File content/layouttest_support/content_layouttest_support.cc (right): https://codereview.chromium.org/11362161/diff/1/content/layouttest_support/content_layouttest_support.cc#newcode1 content/layouttest_support/content_layouttest_support.cc:1: // Copyright (c) 2012 The Chromium Authors. All rights ...
8 years, 1 month ago (2012-11-08 17:18:08 UTC) #2
jochen (gone - plz use gerrit)
Here's a version that works without exposing RenderViewImpl or other internal names in the public ...
8 years, 1 month ago (2012-11-08 19:27:48 UTC) #3
jam
https://codereview.chromium.org/11362161/diff/4001/content/content_renderer.gypi File content/content_renderer.gypi (right): https://codereview.chromium.org/11362161/diff/4001/content/content_renderer.gypi#newcode276 content/content_renderer.gypi:276: 'test/content_layouttest_support.cc', why is this dependency there on shared builds? ...
8 years, 1 month ago (2012-11-08 20:37:06 UTC) #4
jochen (gone - plz use gerrit)
https://codereview.chromium.org/11362161/diff/4001/content/content_renderer.gypi File content/content_renderer.gypi (right): https://codereview.chromium.org/11362161/diff/4001/content/content_renderer.gypi#newcode276 content/content_renderer.gypi:276: 'test/content_layouttest_support.cc', On 2012/11/08 20:37:06, John Abd-El-Malek wrote: > why ...
8 years, 1 month ago (2012-11-08 20:41:08 UTC) #5
jam
https://codereview.chromium.org/11362161/diff/4001/content/content_renderer.gypi File content/content_renderer.gypi (right): https://codereview.chromium.org/11362161/diff/4001/content/content_renderer.gypi#newcode276 content/content_renderer.gypi:276: 'test/content_layouttest_support.cc', On 2012/11/08 20:41:08, jochen wrote: > On 2012/11/08 ...
8 years, 1 month ago (2012-11-08 20:49:24 UTC) #6
jochen (gone - plz use gerrit)
Turns out content_exporting RenderViewImpl is enough. Addressed all other comments
8 years, 1 month ago (2012-11-08 21:46:02 UTC) #7
jam
lgtm with the one change below, very cool :) https://codereview.chromium.org/11362161/diff/1007/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/11362161/diff/1007/content/content_tests.gypi#newcode790 content/content_tests.gypi:790: ...
8 years, 1 month ago (2012-11-09 02:00:19 UTC) #8
jam
https://codereview.chromium.org/11362161/diff/1007/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/11362161/diff/1007/content/content_tests.gypi#newcode790 content/content_tests.gypi:790: 'target_name': 'content_layouttest_support', On 2012/11/09 02:00:19, John Abd-El-Malek wrote: > ...
8 years, 1 month ago (2012-11-09 02:05:57 UTC) #9
jochen (gone - plz use gerrit)
https://codereview.chromium.org/11362161/diff/1007/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/11362161/diff/1007/content/content_tests.gypi#newcode790 content/content_tests.gypi:790: 'target_name': 'content_layouttest_support', On 2012/11/09 02:05:58, John Abd-El-Malek wrote: > ...
8 years, 1 month ago (2012-11-09 09:41:00 UTC) #10
jochen (gone - plz use gerrit)
On 2012/11/09 09:41:00, jochen wrote: > https://codereview.chromium.org/11362161/diff/1007/content/content_tests.gypi > File content/content_tests.gypi (right): > > https://codereview.chromium.org/11362161/diff/1007/content/content_tests.gypi#newcode790 > ...
8 years, 1 month ago (2012-11-09 10:54:30 UTC) #11
jam
On 2012/11/09 10:54:30, jochen wrote: > On 2012/11/09 09:41:00, jochen wrote: > > https://codereview.chromium.org/11362161/diff/1007/content/content_tests.gypi > ...
8 years, 1 month ago (2012-11-09 17:02:31 UTC) #12
jochen (gone - plz use gerrit)
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=78615 It's a collision on TestRunner On Nov 9, 2012 6:02 PM, <jam@chromium.org> wrote: > ...
8 years, 1 month ago (2012-11-09 17:18:54 UTC) #13
jam
8 years, 1 month ago (2012-11-09 17:26:05 UTC) #14
On 2012/11/09 17:18:54, jochen wrote:
>
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...
> 
> It's a collision on TestRunner

Seems like that code should be in the net namespace per our convention.

Powered by Google App Engine
This is Rietveld 408576698