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/utf_string_conversions.h" | 5 #include "base/strings/utf_string_conversions.h" |
6 #include "chrome/app/chrome_command_ids.h" | 6 #include "chrome/app/chrome_command_ids.h" |
7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
8 #include "chrome/browser/ui/browser_commands.h" | 8 #include "chrome/browser/ui/browser_commands.h" |
9 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
11 #include "chrome/test/base/in_process_browser_test.h" | 11 #include "chrome/test/base/in_process_browser_test.h" |
12 #include "chrome/test/base/ui_test_utils.h" | 12 #include "chrome/test/base/ui_test_utils.h" |
13 #include "content/public/browser/navigation_entry.h" | 13 #include "content/public/browser/navigation_entry.h" |
14 #include "content/public/browser/notification_service.h" | 14 #include "content/public/browser/notification_service.h" |
15 #include "content/public/browser/notification_types.h" | 15 #include "content/public/browser/notification_types.h" |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 content::ExecuteScript(browser()->tab_strip_model()->GetWebContentsAt(0), | 124 content::ExecuteScript(browser()->tab_strip_model()->GetWebContentsAt(0), |
125 "window.location.reload();")); | 125 "window.location.reload();")); |
126 | 126 |
127 content::WindowedNotificationObserver observer2( | 127 content::WindowedNotificationObserver observer2( |
128 content::NOTIFICATION_LOAD_STOP, | 128 content::NOTIFICATION_LOAD_STOP, |
129 content::NotificationService::AllSources()); | 129 content::NotificationService::AllSources()); |
130 observer2.Wait(); | 130 observer2.Wait(); |
131 ASSERT_TRUE(browser()->tab_strip_model()->GetWebContentsAt(0)-> | 131 ASSERT_TRUE(browser()->tab_strip_model()->GetWebContentsAt(0)-> |
132 GetController().GetActiveEntry()->IsViewSourceMode()); | 132 GetController().GetActiveEntry()->IsViewSourceMode()); |
133 } | 133 } |
OLD | NEW |