Chromium Code Reviews| Index: chrome/browser/errorpage_uitest.cc |
| diff --git a/chrome/browser/errorpage_uitest.cc b/chrome/browser/errorpage_uitest.cc |
| index 409cca0eb240372177b060932ff823900b9d8027..8a9623d3ea7b72e7a97d99d6810c84212cab66af 100644 |
| --- a/chrome/browser/errorpage_uitest.cc |
| +++ b/chrome/browser/errorpage_uitest.cc |
| @@ -17,6 +17,10 @@ class ErrorPageTest : public UITest { |
| return true; |
| PlatformThread::Sleep(sleep_timeout_ms() / 10); |
| } |
| + |
| + // Print more info when things go wrong. |
| + EXPECT_EQ(title, GetActiveTabTitle()); |
|
M-A Ruel
2009/09/10 17:48:42
I'd remove 3 lines out of 4. I'll let you guess wh
|
| + |
| return false; |
| } |
| bool WaitForTitleContaining(const std::string& title_substring) { |
| @@ -26,6 +30,11 @@ class ErrorPageTest : public UITest { |
| return true; |
| PlatformThread::Sleep(sleep_timeout_ms() / 10); |
| } |
| + |
| + // Print more info when things go wrong. |
| + LOG(ERROR) << "Could not find " << title_substring << " in " |
|
M-A Ruel
2009/09/10 17:48:42
Here too.
|
| + << GetActiveTabTitle(); |
| + |
| return false; |
| } |
| }; |