diff options
author | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 22:49:45 +0000 |
---|---|---|
committer | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-06 22:49:45 +0000 |
commit | 5f8af2aa221fd2fba282dd51dc0837829cd48967 (patch) | |
tree | d81334eb34cce1b935767194a829d650116b1213 /chrome/test/automation/tab_proxy.cc | |
parent | b63cbfaf62c1119b1f4b715d0186e516a2444600 (diff) | |
download | chromium_src-5f8af2aa221fd2fba282dd51dc0837829cd48967.zip chromium_src-5f8af2aa221fd2fba282dd51dc0837829cd48967.tar.gz chromium_src-5f8af2aa221fd2fba282dd51dc0837829cd48967.tar.bz2 |
Adding an interactive UI test to catch when switching between two tabs (both with FindInPage open) is trashing the Esc handler and causing a crash.
I originally tried an automated_ui test, but was unable to get it to work since Focus changes are involved.
BUG=1303709
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@466 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/tab_proxy.cc')
-rw-r--r-- | chrome/test/automation/tab_proxy.cc | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc index 4fb4432..2cca9a4 100644 --- a/chrome/test/automation/tab_proxy.cc +++ b/chrome/test/automation/tab_proxy.cc @@ -92,6 +92,15 @@ bool TabProxy::IsShelfVisible(bool* is_visible) { return true; } +bool TabProxy::OpenFindInPage() { + if (!is_valid()) + return false; + + return sender_->Send( + new AutomationMsg_OpenFindInPageRequest(0, handle_)); + // This message expects no response. +} + int TabProxy::FindInPage(const std::wstring& search_string, FindInPageDirection forward, FindInPageCase match_case) { |