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 "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/prefs/pref_service.h" | 6 #include "base/prefs/pref_service.h" |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/strings/utf_string_conversions.h" | 8 #include "base/strings/utf_string_conversions.h" |
9 #include "chrome/browser/google/google_util.h" | 9 #include "chrome/browser/google/google_util.h" |
10 #include "chrome/browser/net/url_request_mock_util.h" | 10 #include "chrome/browser/net/url_request_mock_util.h" |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 #endif | 255 #endif |
256 // Test that a DNS error occuring in an iframe does not result in an | 256 // Test that a DNS error occuring in an iframe does not result in an |
257 // additional session history entry. | 257 // additional session history entry. |
258 IN_PROC_BROWSER_TEST_F(ErrorPageTest, MAYBE_IFrameDNSError_GoBack) { | 258 IN_PROC_BROWSER_TEST_F(ErrorPageTest, MAYBE_IFrameDNSError_GoBack) { |
259 NavigateToFileURL(FILE_PATH_LITERAL("title2.html")); | 259 NavigateToFileURL(FILE_PATH_LITERAL("title2.html")); |
260 NavigateToFileURL(FILE_PATH_LITERAL("iframe_dns_error.html")); | 260 NavigateToFileURL(FILE_PATH_LITERAL("iframe_dns_error.html")); |
261 GoBackAndWaitForTitle("Title Of Awesomeness", 1); | 261 GoBackAndWaitForTitle("Title Of Awesomeness", 1); |
262 } | 262 } |
263 | 263 |
264 // This test fails regularly on win_rel trybots. See crbug.com/121540 | 264 // This test fails regularly on win_rel trybots. See crbug.com/121540 |
265 #if defined(OS_WIN) | 265 // |
| 266 // This fails on linux_aura bringup: http://crbug.com/163931 |
| 267 #if defined(OS_WIN) || (defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(US
E_AURA)) |
266 #define MAYBE_IFrameDNSError_GoBackAndForward DISABLED_IFrameDNSError_GoBackAndF
orward | 268 #define MAYBE_IFrameDNSError_GoBackAndForward DISABLED_IFrameDNSError_GoBackAndF
orward |
267 #else | 269 #else |
268 #define MAYBE_IFrameDNSError_GoBackAndForward IFrameDNSError_GoBackAndForward | 270 #define MAYBE_IFrameDNSError_GoBackAndForward IFrameDNSError_GoBackAndForward |
269 #endif | 271 #endif |
270 // Test that a DNS error occuring in an iframe does not result in an | 272 // Test that a DNS error occuring in an iframe does not result in an |
271 // additional session history entry. | 273 // additional session history entry. |
272 IN_PROC_BROWSER_TEST_F(ErrorPageTest, MAYBE_IFrameDNSError_GoBackAndForward) { | 274 IN_PROC_BROWSER_TEST_F(ErrorPageTest, MAYBE_IFrameDNSError_GoBackAndForward) { |
273 NavigateToFileURL(FILE_PATH_LITERAL("title2.html")); | 275 NavigateToFileURL(FILE_PATH_LITERAL("title2.html")); |
274 NavigateToFileURL(FILE_PATH_LITERAL("iframe_dns_error.html")); | 276 NavigateToFileURL(FILE_PATH_LITERAL("iframe_dns_error.html")); |
275 GoBackAndWaitForTitle("Title Of Awesomeness", 1); | 277 GoBackAndWaitForTitle("Title Of Awesomeness", 1); |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
495 | 497 |
496 bool result = false; | 498 bool result = false; |
497 EXPECT_TRUE(content::ExecuteScriptAndExtractBool( | 499 EXPECT_TRUE(content::ExecuteScriptAndExtractBool( |
498 browser()->tab_strip_model()->GetActiveWebContents(), | 500 browser()->tab_strip_model()->GetActiveWebContents(), |
499 GetTextContentContainsStringScript(kHostnameJSUnicode), | 501 GetTextContentContainsStringScript(kHostnameJSUnicode), |
500 &result)); | 502 &result)); |
501 EXPECT_TRUE(result); | 503 EXPECT_TRUE(result); |
502 } | 504 } |
503 | 505 |
504 } // namespace | 506 } // namespace |
OLD | NEW |