From 3f97e3fbaee75e0ed70c1f37d195aef9914b20ee Mon Sep 17 00:00:00 2001 From: "ojan@google.com" Date: Wed, 17 Dec 2008 01:14:00 +0000 Subject: Add some initial before unload tests. We still need tests for multiple tabs with beforeunload/unload handlers. Review URL: http://codereview.chromium.org/14085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7122 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/ui/ui_test.cc | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/test/ui/ui_test.cc') diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc index c3f0c4b..fbf03f9 100644 --- a/chrome/test/ui/ui_test.cc +++ b/chrome/test/ui/ui_test.cc @@ -570,6 +570,11 @@ std::wstring UITest::GetDownloadDirectory() { return download_directory; } +void UITest::CloseBrowserAsync(BrowserProxy* browser) const { + server_->Send( + new AutomationMsg_CloseBrowserRequest(0, browser->handle())); +} + bool UITest::CloseBrowser(BrowserProxy* browser, bool* application_closed) const { DCHECK(application_closed); -- cgit v1.1