OLD | NEW |
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2009 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 <string> | 5 #include <string> |
6 | 6 |
| 7 #include "app/l10n_util.h" |
7 #include "base/file_path.h" | 8 #include "base/file_path.h" |
8 #include "chrome/browser/view_ids.h" | 9 #include "chrome/browser/view_ids.h" |
9 #include "chrome/common/chrome_constants.h" | 10 #include "chrome/common/chrome_constants.h" |
10 #include "chrome/common/l10n_util.h" | |
11 #include "chrome/test/automation/automation_constants.h" | 11 #include "chrome/test/automation/automation_constants.h" |
12 #include "chrome/test/automation/browser_proxy.h" | 12 #include "chrome/test/automation/browser_proxy.h" |
13 #include "chrome/test/automation/constrained_window_proxy.h" | 13 #include "chrome/test/automation/constrained_window_proxy.h" |
14 #include "chrome/test/automation/tab_proxy.h" | 14 #include "chrome/test/automation/tab_proxy.h" |
15 #include "chrome/test/automation/window_proxy.h" | 15 #include "chrome/test/automation/window_proxy.h" |
16 #include "chrome/test/ui/ui_test.h" | 16 #include "chrome/test/ui/ui_test.h" |
17 #include "chrome/views/event.h" | 17 #include "chrome/views/event.h" |
18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
19 #include "net/base/net_util.h" | 19 #include "net/base/net_util.h" |
20 | 20 |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 TEST_F(InteractiveConstrainedWindowTest, DontBreakOnBlur) { | 248 TEST_F(InteractiveConstrainedWindowTest, DontBreakOnBlur) { |
249 NavigateMainTabTo(L"window_blur_test.html"); | 249 NavigateMainTabTo(L"window_blur_test.html"); |
250 SimulateClickInCenterOf(window_); | 250 SimulateClickInCenterOf(window_); |
251 | 251 |
252 // Wait for the popup window to open. | 252 // Wait for the popup window to open. |
253 ASSERT_TRUE(automation()->WaitForWindowCountToBecome(2, 1000)); | 253 ASSERT_TRUE(automation()->WaitForWindowCountToBecome(2, 1000)); |
254 | 254 |
255 // We popup shouldn't be closed by the onblur handler. | 255 // We popup shouldn't be closed by the onblur handler. |
256 ASSERT_FALSE(automation()->WaitForWindowCountToBecome(1, 1500)); | 256 ASSERT_FALSE(automation()->WaitForWindowCountToBecome(1, 1500)); |
257 } | 257 } |
OLD | NEW |