| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 5 |
| 6 #include "chrome/browser/view_ids.h" | 6 #include "chrome/browser/view_ids.h" |
| 7 #include "chrome/test/automation/browser_proxy.h" | 7 #include "chrome/test/automation/browser_proxy.h" |
| 8 #include "chrome/test/automation/window_proxy.h" | 8 #include "chrome/test/automation/window_proxy.h" |
| 9 #include "chrome/test/automation/tab_proxy.h" | 9 #include "chrome/test/automation/tab_proxy.h" |
| 10 #include "chrome/test/ui/ui_test.h" | 10 #include "chrome/test/ui/ui_test.h" |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 views::Event::EF_LEFT_BUTTON_DOWN)); | 86 views::Event::EF_LEFT_BUTTON_DOWN)); |
| 87 ::Sleep(kActionDelayMs); | 87 ::Sleep(kActionDelayMs); |
| 88 int focused_view_id; | 88 int focused_view_id; |
| 89 EXPECT_TRUE(window->GetFocusedViewID(&focused_view_id)); | 89 EXPECT_TRUE(window->GetFocusedViewID(&focused_view_id)); |
| 90 EXPECT_EQ(VIEW_ID_LOCATION_BAR, focused_view_id); | 90 EXPECT_EQ(VIEW_ID_LOCATION_BAR, focused_view_id); |
| 91 | 91 |
| 92 // This used to crash until bug 1303709 was fixed. | 92 // This used to crash until bug 1303709 was fixed. |
| 93 EXPECT_TRUE(window->SimulateOSKeyPress(VK_ESCAPE, 0)); | 93 EXPECT_TRUE(window->SimulateOSKeyPress(VK_ESCAPE, 0)); |
| 94 ::Sleep(kActionDelayMs); | 94 ::Sleep(kActionDelayMs); |
| 95 } | 95 } |
| OLD | NEW |