summaryrefslogtreecommitdiffstats
path: root/chrome/browser/errorpage_uitest.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 17:37:44 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-22 17:37:44 +0000
commitf82d9d6816d77908bca9d5bc2319c75c355ce9b7 (patch)
tree1a7afc39c5b741f541e5345167b6580c0cb2d29c /chrome/browser/errorpage_uitest.cc
parent840d06673585d905c5091ebd18b72401fae92cff (diff)
downloadchromium_src-f82d9d6816d77908bca9d5bc2319c75c355ce9b7.zip
chromium_src-f82d9d6816d77908bca9d5bc2319c75c355ce9b7.tar.gz
chromium_src-f82d9d6816d77908bca9d5bc2319c75c355ce9b7.tar.bz2
Do not run ErrorPageTest on XP, too flaky.
TEST=Um, none? BUG=19361 Review URL: http://codereview.chromium.org/212049 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26830 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/errorpage_uitest.cc')
-rw-r--r--chrome/browser/errorpage_uitest.cc58
1 files changed, 58 insertions, 0 deletions
diff --git a/chrome/browser/errorpage_uitest.cc b/chrome/browser/errorpage_uitest.cc
index 1bd7846..1dcae04 100644
--- a/chrome/browser/errorpage_uitest.cc
+++ b/chrome/browser/errorpage_uitest.cc
@@ -3,6 +3,9 @@
// 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"
@@ -23,6 +26,11 @@ 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)
GURL test_url(URLRequestFailedDnsJob::kTestUrl);
// The first navigation should fail, and the second one should be the error
@@ -33,6 +41,11 @@ TEST_F(ErrorPageTest, DNSError_Basic) {
}
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)
// Test that a DNS error occuring in the main frame does not result in an
// additional session history entry.
GURL test_url(URLRequestFailedDnsJob::kTestUrl);
@@ -49,6 +62,11 @@ TEST_F(ErrorPageTest, DNSError_GoBack1) {
}
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)
// Test that a DNS error occuring in the main frame does not result in an
// additional session history entry.
GURL test_url(URLRequestFailedDnsJob::kTestUrl);
@@ -70,6 +88,11 @@ TEST_F(ErrorPageTest, DNSError_GoBack2) {
}
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)
// Test that a DNS error occuring in the main frame does not result in an
// additional session history entry.
@@ -95,6 +118,11 @@ TEST_F(ErrorPageTest, DNSError_GoBack2AndForward) {
}
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)
// Test that a DNS error occuring in the main frame does not result in an
// additional session history entry.
@@ -122,11 +150,21 @@ TEST_F(ErrorPageTest, DNSError_GoBack2Forward2) {
}
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)
NavigateToURL(URLRequestMockHTTPJob::GetMockUrl(L"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)
// Test that a DNS error occuring in an iframe does not result in an
// additional session history entry.
@@ -139,6 +177,11 @@ TEST_F(ErrorPageTest, IFrameDNSError_GoBack) {
}
TEST_F(ErrorPageTest, 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.
@@ -152,6 +195,11 @@ TEST_F(ErrorPageTest, IFrameDNSError_GoBackAndForward) {
}
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)
// 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
@@ -166,6 +214,11 @@ TEST_F(ErrorPageTest, IFrame404) {
}
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)
NavigateToURL(URLRequestMockHTTPJob::GetMockUrl(L"title2.html"));
// The first navigation should fail, and the second one should be the error
// page.
@@ -176,6 +229,11 @@ TEST_F(ErrorPageTest, Page404) {
}
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)
NavigateToURL(URLRequestMockHTTPJob::GetMockUrl(L"title2.html"));
// The first navigation should fail, and the second one should be the error
// page.