From 5c943180e410b2a4e76f93e1612985cdab407e8c Mon Sep 17 00:00:00 2001 From: "stuartmorgan@chromium.org" Date: Tue, 7 Jul 2009 22:31:47 +0000 Subject: Sprinkle some defensiveness into the UI tests so that they don't explode if the proxy doesn't respond (e.g., due to a timeout). BUG=none TEST=Hopefully the Mac valgrind bots will more reliably run all their tests (although there are likely more issues like this lurking). Review URL: http://codereview.chromium.org/149281 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20096 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/test/ui/sunspider_uitest.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'chrome/test/ui/sunspider_uitest.cc') diff --git a/chrome/test/ui/sunspider_uitest.cc b/chrome/test/ui/sunspider_uitest.cc index 05b15c2..3f6c8f5 100644 --- a/chrome/test/ui/sunspider_uitest.cc +++ b/chrome/test/ui/sunspider_uitest.cc @@ -39,6 +39,7 @@ class SunSpiderTest : public UITest { GURL test_url(net::FilePathToFileURL(test_path)); scoped_refptr tab(GetActiveTab()); + ASSERT_TRUE(tab.get()); tab->NavigateToURL(test_url); // Wait for the test to finish. -- cgit v1.1