diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-23 20:47:28 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-23 20:47:28 +0000 |
commit | 17b0b35a5d5515f46415a7f8199202c4655d8f9d (patch) | |
tree | 39cfa63c1018a03f43e92f2e16a536ace235e5aa /chrome/browser | |
parent | 8a4892d8d5ef84d8be7c47ac5e1b5e601f2a77b7 (diff) | |
download | chromium_src-17b0b35a5d5515f46415a7f8199202c4655d8f9d.zip chromium_src-17b0b35a5d5515f46415a7f8199202c4655d8f9d.tar.gz chromium_src-17b0b35a5d5515f46415a7f8199202c4655d8f9d.tar.bz2 |
Mark all ErrorPage tests as FLAKY.
It's a race condition which used to manifest more
frequently on XP, but in fact it exists on all platforms.
People started adding even more #ifdefs and things
when tests failed on Linux too, so let's just say
they're all flaky. :-(
TEST=none
BUG=22877
Review URL: http://codereview.chromium.org/437016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@32849 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/errorpage_uitest.cc | 96 |
1 files changed, 21 insertions, 75 deletions
diff --git a/chrome/browser/errorpage_uitest.cc b/chrome/browser/errorpage_uitest.cc index 56b2e48..6c1f34f 100644 --- a/chrome/browser/errorpage_uitest.cc +++ b/chrome/browser/errorpage_uitest.cc @@ -3,9 +3,6 @@ // found in the LICENSE file. #include "base/string_util.h" -#if defined(OS_WIN) -#include "base/win_util.h" -#endif // defined(OS_WIN) #include "chrome/test/automation/tab_proxy.h" #include "chrome/test/ui/ui_test.h" #include "chrome/browser/net/url_request_failed_dns_job.h" @@ -25,12 +22,8 @@ class ErrorPageTest : public UITest { } }; -TEST_F(ErrorPageTest, DNSError_Basic) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) +// Flaky, http://crbug.com/19361. +TEST_F(ErrorPageTest, FLAKY_DNSError_Basic) { GURL test_url(URLRequestFailedDnsJob::kTestUrl); // The first navigation should fail, and the second one should be the error @@ -40,12 +33,8 @@ TEST_F(ErrorPageTest, DNSError_Basic) { EXPECT_TRUE(WaitForTitleMatching(L"Mock Link Doctor")); } -TEST_F(ErrorPageTest, DNSError_GoBack1) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) +// Flaky, http://crbug.com/19361. +TEST_F(ErrorPageTest, FLAKY_DNSError_GoBack1) { // Test that a DNS error occuring in the main frame does not result in an // additional session history entry. GURL test_url(URLRequestFailedDnsJob::kTestUrl); @@ -62,12 +51,8 @@ TEST_F(ErrorPageTest, DNSError_GoBack1) { EXPECT_TRUE(WaitForTitleMatching(L"Title Of Awesomeness")); } -TEST_F(ErrorPageTest, DNSError_GoBack2) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) +// Flaky, http://crbug.com/19361. +TEST_F(ErrorPageTest, FLAKY_DNSError_GoBack2) { // Test that a DNS error occuring in the main frame does not result in an // additional session history entry. GURL test_url(URLRequestFailedDnsJob::kTestUrl); @@ -90,12 +75,8 @@ TEST_F(ErrorPageTest, DNSError_GoBack2) { EXPECT_TRUE(WaitForTitleMatching(L"Title Of Awesomeness")); } -TEST_F(ErrorPageTest, DNSError_GoBack2AndForward) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) +// Flaky, http://crbug.com/19361. +TEST_F(ErrorPageTest, FLAKY_DNSError_GoBack2AndForward) { // Test that a DNS error occuring in the main frame does not result in an // additional session history entry. @@ -122,12 +103,8 @@ TEST_F(ErrorPageTest, DNSError_GoBack2AndForward) { EXPECT_TRUE(WaitForTitleMatching(L"Mock Link Doctor")); } -TEST_F(ErrorPageTest, DNSError_GoBack2Forward2) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) +// Flaky, http://crbug.com/19361. +TEST_F(ErrorPageTest, FLAKY_DNSError_GoBack2Forward2) { // Test that a DNS error occuring in the main frame does not result in an // additional session history entry. @@ -156,23 +133,15 @@ TEST_F(ErrorPageTest, DNSError_GoBack2Forward2) { EXPECT_TRUE(WaitForTitleMatching(L"Title Of Awesomeness")); } -TEST_F(ErrorPageTest, IFrameDNSError_Basic) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) +// Flaky, http://crbug.com/19361. +TEST_F(ErrorPageTest, FLAKY_IFrameDNSError_Basic) { NavigateToURL(URLRequestMockHTTPJob::GetMockUrl( FilePath(FILE_PATH_LITERAL("iframe_dns_error.html")))); EXPECT_TRUE(WaitForTitleMatching(L"Blah")); } -TEST_F(ErrorPageTest, IFrameDNSError_GoBack) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) +// Flaky, http://crbug.com/19361. +TEST_F(ErrorPageTest, FLAKY_IFrameDNSError_GoBack) { // Test that a DNS error occuring in an iframe does not result in an // additional session history entry. @@ -186,13 +155,8 @@ TEST_F(ErrorPageTest, IFrameDNSError_GoBack) { EXPECT_TRUE(WaitForTitleMatching(L"Title Of Awesomeness")); } -// Flaky on Linux too. +// Flaky, http://crbug.com/19361. TEST_F(ErrorPageTest, FLAKY_IFrameDNSError_GoBackAndForward) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) // Test that a DNS error occuring in an iframe does not result in an // additional session history entry. @@ -207,12 +171,8 @@ TEST_F(ErrorPageTest, FLAKY_IFrameDNSError_GoBackAndForward) { EXPECT_TRUE(WaitForTitleMatching(L"Blah")); } -TEST_F(ErrorPageTest, IFrame404) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) +// Flaky, http://crbug.com/19361. +TEST_F(ErrorPageTest, FLAKY_IFrame404) { // iframes that have 404 pages should not trigger an alternate error page. // In this test, the iframe sets the title of the parent page to "SUCCESS" // when the iframe loads. If the iframe fails to load (because an alternate @@ -226,12 +186,8 @@ TEST_F(ErrorPageTest, IFrame404) { EXPECT_TRUE(WaitForTitleMatching(L"SUCCESS")); } -TEST_F(ErrorPageTest, Page404) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) +// Flaky, http://crbug.com/19361. +TEST_F(ErrorPageTest, FLAKY_Page404) { NavigateToURL(URLRequestMockHTTPJob::GetMockUrl( FilePath(FILE_PATH_LITERAL("title2.html")))); // The first navigation should fail, and the second one should be the error @@ -243,18 +199,8 @@ TEST_F(ErrorPageTest, Page404) { EXPECT_TRUE(WaitForTitleMatching(L"Mock Link Doctor")); } -#if defined(OS_LINUX) -// Below explains this is flaky on XP, but it also flakes out on Linux. -// http://crbug.com/19361 -#define Page404_GoBack FLAKY_Page404_GoBack -#endif - -TEST_F(ErrorPageTest, Page404_GoBack) { -#if defined(OS_WIN) - // Flaky on XP, http://crbug.com/19361. - if (win_util::GetWinVersion() < win_util::WINVERSION_VISTA) - return; -#endif // defined(OS_WIN) +// Flaky, http://crbug.com/19361. +TEST_F(ErrorPageTest, FLAKY_Page404_GoBack) { NavigateToURL(URLRequestMockHTTPJob::GetMockUrl( FilePath(FILE_PATH_LITERAL("title2.html")))); // The first navigation should fail, and the second one should be the error |