summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorrolandsteiner@chromium.org <rolandsteiner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 10:55:34 +0000
committerrolandsteiner@chromium.org <rolandsteiner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-10 10:55:34 +0000
commitafcaa6f201d188e98d68e2af1037de5f916b3e5d (patch)
treef5f14884733fdd5cceb44059ec010f1e295a537d /chrome
parent8dca08e1dff0f8cf67555986a0561b5b81860ef0 (diff)
downloadchromium_src-afcaa6f201d188e98d68e2af1037de5f916b3e5d.zip
chromium_src-afcaa6f201d188e98d68e2af1037de5f916b3e5d.tar.gz
chromium_src-afcaa6f201d188e98d68e2af1037de5f916b3e5d.tar.bz2
Mark all tests in the DownloadTest suite as flaky under Windows (as discussed in this review).
As discussed under http://codereview.chromium.org/342056 . Note: did not change that ContentDisposition test, which was already marked as FLAKY for all platforms, nor KnownSize, which is DISABLED. BUG=20809 TEST=none Review URL: http://codereview.chromium.org/342056 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31549 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/download/download_uitest.cc24
1 files changed, 19 insertions, 5 deletions
diff --git a/chrome/browser/download/download_uitest.cc b/chrome/browser/download/download_uitest.cc
index 17db955..421ad68 100644
--- a/chrome/browser/download/download_uitest.cc
+++ b/chrome/browser/download/download_uitest.cc
@@ -27,6 +27,12 @@
#include "net/base/net_util.h"
#include "net/url_request/url_request_unittest.h"
+#if defined(OS_WIN)
+#define FLAKYONWIN(Test) FLAKY_ ## Test
+#else
+#define FLAKYONWIN(Test) Test
+#endif
+
namespace {
const wchar_t kDocRoot[] = L"chrome/test/data";
@@ -176,7 +182,8 @@ class DownloadTest : public UITest {
// Download a file with non-viewable content, verify that the
// download tab opened and the file exists.
-TEST_F(DownloadTest, DownloadMimeType) {
+// FLAKYONWIN: see http://crbug.com/20809
+TEST_F(DownloadTest, FLAKYONWIN(DownloadMimeType)) {
FilePath file(FILE_PATH_LITERAL("download-test1.lib"));
EXPECT_EQ(1, GetTabCount());
@@ -197,7 +204,8 @@ TEST_F(DownloadTest, DownloadMimeType) {
// Access a file with a viewable mime-type, verify that a download
// did not initiate.
-TEST_F(DownloadTest, NoDownload) {
+// FLAKYONWIN: see http://crbug.com/20809
+TEST_F(DownloadTest, FLAKYONWIN(NoDownload)) {
FilePath file(FILE_PATH_LITERAL("download-test2.html"));
FilePath file_path = download_prefix_.Append(file);
@@ -249,7 +257,8 @@ TEST_F(DownloadTest, FLAKY_ContentDisposition) {
// tab, opening a second tab, closing the shelf, going back to the first tab,
// and checking that the shelf is closed.
// See bug http://crbug.com/26325
-TEST_F(DownloadTest, FLAKY_PerWindowShelf) {
+// FLAKYONWIN: see http://crbug.com/20809
+TEST_F(DownloadTest, FLAKYONWIN(PerWindowShelf)) {
FilePath file(FILE_PATH_LITERAL("download-test3.gif"));
FilePath download_file(FILE_PATH_LITERAL("download-test3-attachment.gif"));
@@ -294,7 +303,8 @@ TEST_F(DownloadTest, FLAKY_PerWindowShelf) {
// in the middle until the server receives a second request for
// "download-finish. At that time, the download will finish.
// Flaky on Linux: http://code.google.com/p/chromium/issues/detail?id=14746
-TEST_F(DownloadTest, UnknownSize) {
+// FLAKYONWIN: see http://crbug.com/20809
+TEST_F(DownloadTest, FLAKYONWIN(UnknownSize)) {
GURL url(URLRequestSlowDownloadJob::kUnknownSizeUrl);
FilePath filename;
net::FileURLToFilePath(url, &filename);
@@ -315,7 +325,8 @@ TEST_F(DownloadTest, DISABLED_KnownSize) {
// Test that when downloading an item in Incognito mode, we don't crash when
// closing the last Incognito window (http://crbug.com/13983).
-TEST_F(DownloadTest, IncognitoDownload) {
+// FLAKYONWIN: see http://crbug.com/20809
+TEST_F(DownloadTest, FLAKYONWIN(IncognitoDownload)) {
// Open a regular window and sanity check default values for window / tab
// count and shelf visibility.
scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0));
@@ -356,3 +367,6 @@ TEST_F(DownloadTest, IncognitoDownload) {
}
} // namespace
+
+#undef FLAKYONWIN
+