Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(767)

Side by Side Diff: chrome/browser/extensions/web_view_interactive_browsertest.cc

Issue 14272003: <webview>: Focusing <webview> should propagate to BrowserPlugin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Moved to web_view_interactive_browsertest.cc Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/web_view.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/web_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698