diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-30 10:21:27 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-30 10:21:27 +0000 |
commit | 0e60b64fcae0a0f21982bc42e0e608c8d44b12c1 (patch) | |
tree | 5ec1f7dfc5a1955d370ef071abba840c4054271d /chrome/browser/session_history_uitest.cc | |
parent | 80de4fa5861be1171ad502eba157570839601086 (diff) | |
download | chromium_src-0e60b64fcae0a0f21982bc42e0e608c8d44b12c1.zip chromium_src-0e60b64fcae0a0f21982bc42e0e608c8d44b12c1.tar.gz chromium_src-0e60b64fcae0a0f21982bc42e0e608c8d44b12c1.tar.bz2 |
[GTTF] Miscellanous UI tests cleanups:
- use built-in timeouts instead of "inventing" them in each test case
- avoid unneeded checks and operations
- use automation calls more effectively
- use FLAKY mark instead of DISABLED to maintain test coverage
- split some tests to make the above possible
TEST=UI test based
BUG=39785
Review URL: http://codereview.chromium.org/1547003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43070 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/session_history_uitest.cc')
-rw-r--r-- | chrome/browser/session_history_uitest.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/chrome/browser/session_history_uitest.cc b/chrome/browser/session_history_uitest.cc index c293a9d..830f9be 100644 --- a/chrome/browser/session_history_uitest.cc +++ b/chrome/browser/session_history_uitest.cc @@ -14,8 +14,6 @@ #include "net/base/net_util.h" #include "net/url_request/url_request_unittest.h" -using std::wstring; - namespace { const wchar_t kDocRoot[] = L"chrome/test/data"; @@ -32,9 +30,7 @@ class SessionHistoryTest : public UITest { window_ = automation()->GetBrowserWindow(0); ASSERT_TRUE(window_.get()); - int active_tab_index = -1; - ASSERT_TRUE(window_->GetActiveTabIndex(&active_tab_index)); - tab_ = window_->GetTab(active_tab_index); + tab_ = window_->GetActiveTab(); ASSERT_TRUE(tab_.get()); } @@ -67,8 +63,8 @@ class SessionHistoryTest : public UITest { ASSERT_TRUE(tab_->NavigateToURL(url)); } - wstring GetTabTitle() { - wstring title; + std::wstring GetTabTitle() { + std::wstring title; EXPECT_TRUE(tab_->GetTabTitle(&title)); return title; } |