OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/utf_string_conversions.h" |
6 #include "chrome/browser/extensions/extension_test_message_listener.h" | 6 #include "chrome/browser/extensions/extension_test_message_listener.h" |
7 #include "chrome/browser/extensions/platform_app_browsertest_util.h" | 7 #include "chrome/browser/extensions/platform_app_browsertest_util.h" |
8 #include "chrome/browser/extensions/shell_window_registry.h" | 8 #include "chrome/browser/extensions/shell_window_registry.h" |
9 #include "chrome/browser/ui/extensions/shell_window.h" | 9 #include "chrome/browser/ui/extensions/shell_window.h" |
10 #include "chrome/test/base/interactive_test_utils.h" | 10 #include "chrome/test/base/interactive_test_utils.h" |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
194 // Sending a right click seems to fix this (why?). | 194 // Sending a right click seems to fix this (why?). |
195 ExtensionTestMessageListener move_listener2("move-captured", false); | 195 ExtensionTestMessageListener move_listener2("move-captured", false); |
196 SendMouseClick(ui_controls::RIGHT); | 196 SendMouseClick(ui_controls::RIGHT); |
197 ASSERT_TRUE(ui_test_utils::SendMouseMoveSync( | 197 ASSERT_TRUE(ui_test_utils::SendMouseMoveSync( |
198 gfx::Point(corner().x() + 51, corner().y() + 11))); | 198 gfx::Point(corner().x() + 51, corner().y() + 11))); |
199 ASSERT_TRUE(move_listener2.WaitUntilSatisfied()); | 199 ASSERT_TRUE(move_listener2.WaitUntilSatisfied()); |
200 } | 200 } |
201 } | 201 } |
202 | 202 |
203 #endif // (defined(OS_WIN) || defined(OS_LINUX)) | 203 #endif // (defined(OS_WIN) || defined(OS_LINUX)) |
| 204 |
| 205 // Tests that setting focus on the <webview> sets focus on the guest. |
| 206 IN_PROC_BROWSER_TEST_F(WebViewInteractiveTest, Focus) { |
| 207 ASSERT_TRUE(StartTestServer()); // For serving guest pages. |
| 208 ASSERT_TRUE(RunPlatformAppTest("platform_apps/web_view/focus")) |
| 209 << message_; |
| 210 } |
OLD | NEW |