From 1ca4fac072a12890b72b899b48da00617f8429ef Mon Sep 17 00:00:00 2001 From: "jochen@chromium.org" Date: Mon, 8 Apr 2013 14:15:11 +0000 Subject: [content shell] add support for invoking testRunner.notifyDone in a different process Some layout tests, e.g. http/tests/navigation/no-referrer-target-blank.html create a new process, and notifyDone() will be invoked in that new process. Add support for forwarding that signal to the main test runner. BUG=111316 R=mkwst@chromium.org TEST=http/tests/navigation/no-referrer-target-blank.html does not time out Review URL: https://codereview.chromium.org/13795002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192819 0039d316-1c4b-4281-b951-d872f2087c98 --- content/shell/webkit_test_controller.cc | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'content/shell/webkit_test_controller.cc') diff --git a/content/shell/webkit_test_controller.cc b/content/shell/webkit_test_controller.cc index 4f604c3..eaa7b12 100644 --- a/content/shell/webkit_test_controller.cc +++ b/content/shell/webkit_test_controller.cc @@ -309,6 +309,13 @@ void WebKitTestController::OpenURL(const GURL& url) { gfx::Size()); } +void WebKitTestController::TestFinishedInSecondaryWindow() { + RenderViewHost* render_view_host = + main_window_->web_contents()->GetRenderViewHost(); + render_view_host->Send( + new ShellViewMsg_NotifyDone(render_view_host->GetRoutingID())); +} + bool WebKitTestController::OnMessageReceived(const IPC::Message& message) { DCHECK(CalledOnValidThread()); bool handled = true; -- cgit v1.1