diff options
author | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-15 23:53:41 +0000 |
---|---|---|
committer | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-15 23:53:41 +0000 |
commit | c1bcb90272edd39e67f85877b58da4f28fef055e (patch) | |
tree | 3a5fb036d3c9bcccb5b4623dd8010687129461c5 /chrome/test/ui/ui_test.cc | |
parent | 4d87ceb4a9b76da50f30afd47043b35fd0fd24a8 (diff) | |
download | chromium_src-c1bcb90272edd39e67f85877b58da4f28fef055e.zip chromium_src-c1bcb90272edd39e67f85877b58da4f28fef055e.tar.gz chromium_src-c1bcb90272edd39e67f85877b58da4f28fef055e.tar.bz2 |
Add a ui test to make sure the Find box does not go away on Reload but does
go away when you navigate to a new page.
Review URL: http://codereview.chromium.org/14130
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7016 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui/ui_test.cc')
-rw-r--r-- | chrome/test/ui/ui_test.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc index 35f09cf..c3f0c4b 100644 --- a/chrome/test/ui/ui_test.cc +++ b/chrome/test/ui/ui_test.cc @@ -389,14 +389,15 @@ bool UITest::WaitForDownloadShelfVisible(TabProxy* tab) { return false; } -bool UITest::WaitForFindWindowFullyVisible(TabProxy* tab) { +bool UITest::WaitForFindWindowVisibilityChange(TabProxy* tab, + bool wait_for_open) { const int kCycles = 20; for (int i = 0; i < kCycles; i++) { bool visible = false; if (!tab->IsFindWindowFullyVisible(&visible)) return false; // Some error. - if (visible) - return true; // Find window is visible. + if (visible == wait_for_open) + return true; // Find window visibility change complete. // Give it a chance to catch up. Sleep(kWaitForActionMaxMsec / kCycles); |