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/repost_form_warning_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/repost_form_warning_uitest.cc')
-rw-r--r-- | chrome/browser/repost_form_warning_uitest.cc | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/chrome/browser/repost_form_warning_uitest.cc b/chrome/browser/repost_form_warning_uitest.cc index 755ae85..b17e588 100644 --- a/chrome/browser/repost_form_warning_uitest.cc +++ b/chrome/browser/repost_form_warning_uitest.cc @@ -13,26 +13,23 @@ #include "chrome/test/ui/ui_test.h" #include "net/url_request/url_request_unittest.h" -using std::wstring; - namespace { const wchar_t kDocRoot[] = L"chrome/test/data"; } // namespace -class RepostFormWarningTest : public UITest { -}; - +typedef UITest RepostFormWarningTest; TEST_F(RepostFormWarningTest, TestDoubleReload) { scoped_refptr<HTTPTestServer> server = HTTPTestServer::CreateServer(kDocRoot, NULL); ASSERT_TRUE(NULL != server.get()); scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0)); - EXPECT_TRUE(browser.get()); + ASSERT_TRUE(browser.get()); scoped_refptr<TabProxy> tab(browser->GetTab(0)); + ASSERT_TRUE(tab.get()); // Load a form. ASSERT_TRUE(tab->NavigateToURL(server->TestServerPageW(L"files/form.html"))); @@ -56,6 +53,7 @@ TEST_F(RepostFormWarningTest, TestLoginAfterRepost) { ASSERT_TRUE(browser.get()); scoped_refptr<TabProxy> tab(browser->GetTab(0)); + ASSERT_TRUE(tab.get()); // Load a form. ASSERT_TRUE(tab->NavigateToURL(server->TestServerPageW(L"files/form.html"))); |