OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/macros.h" | 5 #include "base/macros.h" |
6 #include "chrome/browser/ui/browser.h" | 6 #include "chrome/browser/ui/browser.h" |
7 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 7 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
8 #include "chrome/common/url_constants.h" | 8 #include "chrome/common/url_constants.h" |
9 #include "chrome/test/base/in_process_browser_test.h" | 9 #include "chrome/test/base/in_process_browser_test.h" |
10 #include "chrome/test/base/ui_test_utils.h" | 10 #include "chrome/test/base/ui_test_utils.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 NavigationObserver observer( | 110 NavigationObserver observer( |
111 browser()->tab_strip_model()->GetActiveWebContents()); | 111 browser()->tab_strip_model()->GetActiveWebContents()); |
112 ui_test_utils::NavigateToURL( | 112 ui_test_utils::NavigateToURL( |
113 browser(), GURL("chrome://theme/IDR_SETTINGS_FAVICON@2x")); | 113 browser(), GURL("chrome://theme/IDR_SETTINGS_FAVICON@2x")); |
114 EXPECT_EQ(NavigationObserver::SUCCESS, observer.navigation_result()); | 114 EXPECT_EQ(NavigationObserver::SUCCESS, observer.navigation_result()); |
115 | 115 |
116 // Unreasonably large scale | 116 // Unreasonably large scale |
117 observer.Reset(); | 117 observer.Reset(); |
118 ui_test_utils::NavigateToURL( | 118 ui_test_utils::NavigateToURL( |
119 browser(), GURL("chrome://theme/IDR_SETTINGS_FAVICON@99999x")); | 119 browser(), GURL("chrome://theme/IDR_SETTINGS_FAVICON@99999x")); |
120 EXPECT_EQ(NavigationObserver::SUCCESS, observer.navigation_result()); | 120 EXPECT_EQ(NavigationObserver::ERROR_PAGE, observer.navigation_result()); |
121 } | 121 } |
OLD | NEW |