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

Issue 11416177: [content shell] change how the main render view is picked for layout tests (Closed)

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

Description

[content shell] change how the main render view is picked for layout tests The old code would sometimes crash. The reason is that we need to know which is the main render view when the first render view is created. The old code, however, would only pick the main view after it was created. Individual changes: - move sending the fake cwd from RenderViewReady to RenderViewCreated so that we can guarantee it's available on time - Don't guess which WebKitTestRunner belongs to a RenderView, but explictely pass the RenderView with the WebTestProxy creation callback - instead of having the browser set the main render view, the renderer picks the first RenderView and declares it the main view BUG=111316 TEST=Running editing/pasteboard/data-transfer-items-drag-drop-string.html doesn't crash TBR=tsepez@chromium.org Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=169455

Patch Set 1 #

Total comments: 2

Patch Set 2 : patch for landing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -67 lines) Patch
M content/public/test/layouttest_support.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M content/shell/shell_content_renderer_client.h View 2 chunks +2 lines, -4 lines 0 comments Download
M content/shell/shell_content_renderer_client.cc View 3 chunks +11 lines, -15 lines 0 comments Download
M content/shell/shell_messages.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/shell/shell_render_process_observer.h View 2 chunks +4 lines, -0 lines 0 comments Download
M content/shell/shell_render_process_observer.cc View 4 chunks +11 lines, -13 lines 0 comments Download
M content/shell/webkit_test_runner.h View 2 chunks +0 lines, -2 lines 0 comments Download
M content/shell/webkit_test_runner.cc View 3 chunks +1 line, -10 lines 0 comments Download
M content/shell/webkit_test_runner_host.h View 2 chunks +1 line, -3 lines 0 comments Download
M content/shell/webkit_test_runner_host.cc View 3 chunks +4 lines, -11 lines 0 comments Download
M content/test/layouttest_support.cc View 3 chunks +5 lines, -3 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
jochen (gone - plz use gerrit)
plz review
8 years ago (2012-11-26 15:29:40 UTC) #1
marja
lgtm
8 years ago (2012-11-26 15:36:01 UTC) #2
jam
content/public lgtm with nit https://codereview.chromium.org/11416177/diff/1/content/public/test/layouttest_support.h File content/public/test/layouttest_support.h (right): https://codereview.chromium.org/11416177/diff/1/content/public/test/layouttest_support.h#newcode22 content/public/test/layouttest_support.h:22: void(content::RenderView*, WebTestRunner::WebTestProxyBase*)>& callback); nit: no ...
8 years ago (2012-11-26 15:40:02 UTC) #3
jochen (gone - plz use gerrit)
https://codereview.chromium.org/11416177/diff/1/content/public/test/layouttest_support.h File content/public/test/layouttest_support.h (right): https://codereview.chromium.org/11416177/diff/1/content/public/test/layouttest_support.h#newcode22 content/public/test/layouttest_support.h:22: void(content::RenderView*, WebTestRunner::WebTestProxyBase*)>& callback); On 2012/11/26 15:40:02, John Abd-El-Malek wrote: ...
8 years ago (2012-11-26 15:59:23 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/11416177/5001
8 years ago (2012-11-26 16:01:40 UTC) #5
commit-bot: I haz the power
Presubmit check for 11416177-5001 failed and returned exit status 1. Running presubmit commit checks ...
8 years ago (2012-11-26 16:01:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jochen@chromium.org/11416177/5001
8 years ago (2012-11-26 16:47:10 UTC) #7
commit-bot: I haz the power
8 years ago (2012-11-26 19:04:32 UTC) #8
Message was sent while issue was closed.
Change committed as 169455

Powered by Google App Engine
This is Rietveld 408576698