Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(52)

Unified Diff: chrome/browser/views/find_bar_win_uitest.cc

Issue 149281: Sprinkle some defensiveness into the UI tests so that they don't explode if t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/unload_uitest.cc ('k') | chrome/test/automated_ui_tests/automated_ui_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/find_bar_win_uitest.cc
===================================================================
--- chrome/browser/views/find_bar_win_uitest.cc (revision 19956)
+++ chrome/browser/views/find_bar_win_uitest.cc (working copy)
@@ -26,6 +26,7 @@
GURL url = server->TestServerPageW(kSimplePage);
scoped_refptr<TabProxy> tabA(GetActiveTab());
+ ASSERT_TRUE(tabA.get());
ASSERT_TRUE(tabA->NavigateToURL(url));
WaitUntilTabCount(1);
@@ -47,6 +48,7 @@
// Open another tab (tab B).
EXPECT_TRUE(browser->AppendTab(url));
scoped_refptr<TabProxy> tabB(GetActiveTab());
+ ASSERT_TRUE(tabB.get());
// Close tab B.
EXPECT_TRUE(tabB->Close(true));
@@ -68,6 +70,7 @@
// Open another tab (tab C).
EXPECT_TRUE(browser->AppendTab(url));
scoped_refptr<TabProxy> tabC(GetActiveTab());
+ ASSERT_TRUE(tabC.get());
// Close it.
EXPECT_TRUE(tabC->Close(true));
« no previous file with comments | « chrome/browser/unload_uitest.cc ('k') | chrome/test/automated_ui_tests/automated_ui_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698