Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(305)

Side by Side Diff: chrome/browser/errorpage_browsertest.cc

Issue 10911187: Re-enable tests disabled for bug 136310 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Disable MultipartResponseTest.SingleVisit again Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/captive_portal/captive_portal_browsertest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/utf_string_conversions.h" 6 #include "base/utf_string_conversions.h"
7 #include "chrome/browser/net/url_request_mock_util.h" 7 #include "chrome/browser/net/url_request_mock_util.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_commands.h" 9 #include "chrome/browser/ui/browser_commands.h"
10 #include "chrome/browser/ui/browser_tabstrip.h" 10 #include "chrome/browser/ui/browser_tabstrip.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 } 133 }
134 134
135 // See crbug.com/109669 135 // See crbug.com/109669
136 #if defined(USE_AURA) 136 #if defined(USE_AURA)
137 #define MAYBE_DNSError_GoBack2 DISABLED_DNSError_GoBack2 137 #define MAYBE_DNSError_GoBack2 DISABLED_DNSError_GoBack2
138 #else 138 #else
139 #define MAYBE_DNSError_GoBack2 DNSError_GoBack2 139 #define MAYBE_DNSError_GoBack2 DNSError_GoBack2
140 #endif 140 #endif
141 // Test that a DNS error occuring in the main frame does not result in an 141 // Test that a DNS error occuring in the main frame does not result in an
142 // additional session history entry. 142 // additional session history entry.
143 // Disabled: http://crbug.com/136310 143 IN_PROC_BROWSER_TEST_F(ErrorPageTest, DNSError_GoBack2) {
144 IN_PROC_BROWSER_TEST_F(ErrorPageTest, DISABLED_DNSError_GoBack2) {
145 NavigateToFileURL(FILE_PATH_LITERAL("title2.html")); 144 NavigateToFileURL(FILE_PATH_LITERAL("title2.html"));
146 145
147 NavigateToURLAndWaitForTitle(GetDnsErrorURL(), "Mock Link Doctor", 2); 146 NavigateToURLAndWaitForTitle(GetDnsErrorURL(), "Mock Link Doctor", 2);
148 NavigateToFileURL(FILE_PATH_LITERAL("title3.html")); 147 NavigateToFileURL(FILE_PATH_LITERAL("title3.html"));
149 148
150 GoBackAndWaitForTitle("Mock Link Doctor", 2); 149 GoBackAndWaitForTitle("Mock Link Doctor", 2);
151 GoBackAndWaitForTitle("Title Of Awesomeness", 1); 150 GoBackAndWaitForTitle("Title Of Awesomeness", 1);
152 } 151 }
153 152
154 // See crbug.com/109669 153 // See crbug.com/109669
155 #if defined(USE_AURA) 154 #if defined(USE_AURA)
156 #define MAYBE_DNSError_GoBack2AndForward DISABLED_DNSError_GoBack2AndForward 155 #define MAYBE_DNSError_GoBack2AndForward DISABLED_DNSError_GoBack2AndForward
157 #else 156 #else
158 #define MAYBE_DNSError_GoBack2AndForward DNSError_GoBack2AndForward 157 #define MAYBE_DNSError_GoBack2AndForward DNSError_GoBack2AndForward
159 #endif 158 #endif
160 // Test that a DNS error occuring in the main frame does not result in an 159 // Test that a DNS error occuring in the main frame does not result in an
161 // additional session history entry. 160 // additional session history entry.
162 // Disabled: http://crbug.com/136310 161 IN_PROC_BROWSER_TEST_F(ErrorPageTest, DNSError_GoBack2AndForward) {
163 IN_PROC_BROWSER_TEST_F(ErrorPageTest, DISABLED_DNSError_GoBack2AndForward) {
164 NavigateToFileURL(FILE_PATH_LITERAL("title2.html")); 162 NavigateToFileURL(FILE_PATH_LITERAL("title2.html"));
165 163
166 NavigateToURLAndWaitForTitle(GetDnsErrorURL(), "Mock Link Doctor", 2); 164 NavigateToURLAndWaitForTitle(GetDnsErrorURL(), "Mock Link Doctor", 2);
167 NavigateToFileURL(FILE_PATH_LITERAL("title3.html")); 165 NavigateToFileURL(FILE_PATH_LITERAL("title3.html"));
168 166
169 GoBackAndWaitForTitle("Mock Link Doctor", 2); 167 GoBackAndWaitForTitle("Mock Link Doctor", 2);
170 GoBackAndWaitForTitle("Title Of Awesomeness", 1); 168 GoBackAndWaitForTitle("Title Of Awesomeness", 1);
171 169
172 GoForwardAndWaitForTitle("Mock Link Doctor", 2); 170 GoForwardAndWaitForTitle("Mock Link Doctor", 2);
173 } 171 }
174 172
175 // See crbug.com/109669 173 // See crbug.com/109669
176 #if defined(USE_AURA) 174 #if defined(USE_AURA)
177 #define MAYBE_DNSError_GoBack2Forward2 DISABLED_DNSError_GoBack2Forward2 175 #define MAYBE_DNSError_GoBack2Forward2 DISABLED_DNSError_GoBack2Forward2
178 #else 176 #else
179 #define MAYBE_DNSError_GoBack2Forward2 DNSError_GoBack2Forward2 177 #define MAYBE_DNSError_GoBack2Forward2 DNSError_GoBack2Forward2
180 #endif 178 #endif
181 // Test that a DNS error occuring in the main frame does not result in an 179 // Test that a DNS error occuring in the main frame does not result in an
182 // additional session history entry. 180 // additional session history entry.
183 // Disabled: http://crbug.com/136310 181 IN_PROC_BROWSER_TEST_F(ErrorPageTest, DNSError_GoBack2Forward2) {
184 IN_PROC_BROWSER_TEST_F(ErrorPageTest, DISABLED_DNSError_GoBack2Forward2) {
185 NavigateToFileURL(FILE_PATH_LITERAL("title3.html")); 182 NavigateToFileURL(FILE_PATH_LITERAL("title3.html"));
186 183
187 NavigateToURLAndWaitForTitle(GetDnsErrorURL(), "Mock Link Doctor", 2); 184 NavigateToURLAndWaitForTitle(GetDnsErrorURL(), "Mock Link Doctor", 2);
188 NavigateToFileURL(FILE_PATH_LITERAL("title2.html")); 185 NavigateToFileURL(FILE_PATH_LITERAL("title2.html"));
189 186
190 GoBackAndWaitForTitle("Mock Link Doctor", 2); 187 GoBackAndWaitForTitle("Mock Link Doctor", 2);
191 GoBackAndWaitForTitle("Title Of More Awesomeness", 1); 188 GoBackAndWaitForTitle("Title Of More Awesomeness", 1);
192 189
193 GoForwardAndWaitForTitle("Mock Link Doctor", 2); 190 GoForwardAndWaitForTitle("Mock Link Doctor", 2);
194 GoForwardAndWaitForTitle("Title Of Awesomeness", 1); 191 GoForwardAndWaitForTitle("Title Of Awesomeness", 1);
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 } 230 }
234 231
235 // Checks that the Link Doctor is not loaded when we receive an actual 404 page. 232 // Checks that the Link Doctor is not loaded when we receive an actual 404 page.
236 IN_PROC_BROWSER_TEST_F(ErrorPageTest, Page404) { 233 IN_PROC_BROWSER_TEST_F(ErrorPageTest, Page404) {
237 NavigateToURLAndWaitForTitle( 234 NavigateToURLAndWaitForTitle(
238 URLRequestMockHTTPJob::GetMockUrl( 235 URLRequestMockHTTPJob::GetMockUrl(
239 FilePath(FILE_PATH_LITERAL("page404.html"))), 236 FilePath(FILE_PATH_LITERAL("page404.html"))),
240 "SUCCESS", 237 "SUCCESS",
241 1); 238 1);
242 } 239 }
OLDNEW
« no previous file with comments | « chrome/browser/captive_portal/captive_portal_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698