OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/test/layout_browsertest.h" | 5 #include "content/test/layout_browsertest.h" |
6 | 6 |
7 namespace content { | 7 namespace content { |
8 | 8 |
9 class AppCacheLayoutTest : public InProcessBrowserLayoutTest { | 9 class AppCacheLayoutTest : public InProcessBrowserLayoutTest { |
10 public: | 10 public: |
11 AppCacheLayoutTest() : InProcessBrowserLayoutTest( | 11 AppCacheLayoutTest() : InProcessBrowserLayoutTest( |
12 base::FilePath().AppendASCII("http").AppendASCII("tests"), | 12 base::FilePath().AppendASCII("http").AppendASCII("tests"), |
13 base::FilePath().AppendASCII("appcache"), | 13 base::FilePath().AppendASCII("appcache"), |
14 -1) { | 14 -1) { |
15 } | 15 } |
16 | 16 |
17 protected: | 17 protected: |
18 virtual ~AppCacheLayoutTest() {} | 18 virtual ~AppCacheLayoutTest() {} |
19 }; | 19 }; |
20 | 20 |
21 // Flaky and slow, hence disabled: http://crbug.com/54717 | 21 // Flaky and slow, hence disabled: http://crbug.com/54717 |
22 // The tests that don't depend on PHP should be less flaky. | 22 // The tests that don't depend on PHP should be less flaky. |
23 IN_PROC_BROWSER_TEST_F(AppCacheLayoutTest, DISABLED_NoPHP) { | 23 IN_PROC_BROWSER_TEST_F(AppCacheLayoutTest, FLAKY_NoPHP) { |
24 static const char* kNoPHPTests[] = { | 24 static const char* kNoPHPTests[] = { |
25 "404-manifest.html", | 25 "404-manifest.html", |
26 "404-resource.html", | 26 "404-resource.html", |
27 "cyrillic-uri.html", | 27 "cyrillic-uri.html", |
28 "deferred-events-delete-while-raising.html", | 28 "deferred-events-delete-while-raising.html", |
29 "deferred-events.html", | 29 "deferred-events.html", |
30 "destroyed-frame.html", | 30 "destroyed-frame.html", |
31 "detached-iframe.html", | 31 "detached-iframe.html", |
32 "different-origin-manifest.html", | 32 "different-origin-manifest.html", |
33 "different-scheme.html", | 33 "different-scheme.html", |
(...skipping 21 matching lines...) Expand all Loading... |
55 // This test is racey. | 55 // This test is racey. |
56 // https://bugs.webkit.org/show_bug.cgi?id=49104 | 56 // https://bugs.webkit.org/show_bug.cgi?id=49104 |
57 // "foreign-fallback.html" | 57 // "foreign-fallback.html" |
58 | 58 |
59 for (size_t i = 0; i < arraysize(kNoPHPTests); ++i) | 59 for (size_t i = 0; i < arraysize(kNoPHPTests); ++i) |
60 RunHttpLayoutTest(kNoPHPTests[i]); | 60 RunHttpLayoutTest(kNoPHPTests[i]); |
61 } | 61 } |
62 | 62 |
63 // Flaky: http://crbug.com/54717 | 63 // Flaky: http://crbug.com/54717 |
64 // Lighty/PHP is not reliable enough on windows. | 64 // Lighty/PHP is not reliable enough on windows. |
65 IN_PROC_BROWSER_TEST_F(AppCacheLayoutTest, DISABLED_PHP) { | 65 IN_PROC_BROWSER_TEST_F(AppCacheLayoutTest, FLAKY_PHP) { |
66 static const char* kPHPTests[] = { | 66 static const char* kPHPTests[] = { |
67 "auth.html", | 67 "auth.html", |
68 "fallback.html", | 68 "fallback.html", |
69 "main-resource-hash.html", | 69 "main-resource-hash.html", |
70 "manifest-redirect.html", | 70 "manifest-redirect.html", |
71 "manifest-redirect-2.html", | 71 "manifest-redirect-2.html", |
72 "navigating-away-while-cache-attempt-in-progress.html", | 72 "navigating-away-while-cache-attempt-in-progress.html", |
73 "non-html.xhtml", | 73 "non-html.xhtml", |
74 "offline-access.html", | 74 "offline-access.html", |
75 "online-whitelist.html", | 75 "online-whitelist.html", |
(...skipping 16 matching lines...) Expand all Loading... |
92 // "different-https-origin-resource-main.html", | 92 // "different-https-origin-resource-main.html", |
93 // "idempotent-update.html", not sure this is a valid test | 93 // "idempotent-update.html", not sure this is a valid test |
94 // "local-content.html", | 94 // "local-content.html", |
95 // "max-size.html", we use a different quota scheme | 95 // "max-size.html", we use a different quota scheme |
96 | 96 |
97 for (size_t i = 0; i < arraysize(kPHPTests); ++i) | 97 for (size_t i = 0; i < arraysize(kPHPTests); ++i) |
98 RunHttpLayoutTest(kPHPTests[i]); | 98 RunHttpLayoutTest(kPHPTests[i]); |
99 } | 99 } |
100 | 100 |
101 } // namespace content | 101 } // namespace content |
OLD | NEW |