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

Unified Diff: content/browser/browser_plugin/browser_plugin_host_browsertest.cc

Issue 11235048: Test suite that monitors the disposition of JS-created windows based on what (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix style nits Created 8 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/data/click_modifier/window_open.html ('k') | content/browser/plugin_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_plugin/browser_plugin_host_browsertest.cc
diff --git a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
index c40bfde33ddb80c31d254fe62a955348936bd633..1c9e3248618cd567f847bc3204bb0fbd63bfd815 100644
--- a/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
+++ b/content/browser/browser_plugin/browser_plugin_host_browsertest.cc
@@ -334,7 +334,8 @@ IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, MAYBE_NavigateGuest) {
ASCIIToUTF16("StartInfiniteLoop();"));
// Send a mouse event to the guest.
- SimulateMouseClick(test_embedder()->web_contents());
+ SimulateMouseClick(test_embedder()->web_contents(), 0,
+ WebKit::WebMouseEvent::ButtonLeft);
// Expect the guest to crash.
test_guest()->WaitForCrashed();
@@ -363,7 +364,8 @@ IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, AdvanceFocus) {
const char* kGuestURL = "files/browser_plugin_focus_child.html";
StartBrowserPluginTest(kEmbedderURL, kGuestURL, false, "");
- SimulateMouseClick(test_embedder()->web_contents());
+ SimulateMouseClick(test_embedder()->web_contents(), 0,
+ WebKit::WebMouseEvent::ButtonLeft);
BrowserPluginHostTest::SimulateTabKeyPress(test_embedder()->web_contents());
// Wait until we focus into the guest.
test_guest()->WaitForFocus();
@@ -714,7 +716,8 @@ IN_PROC_BROWSER_TEST_F(BrowserPluginHostTest, BackAfterTerminateGuest) {
EXPECT_EQ(expected_title, actual_title);
}
// Send an input event and verify that the guest receives the input.
- SimulateMouseClick(test_embedder()->web_contents());
+ SimulateMouseClick(test_embedder()->web_contents(), 0,
+ WebKit::WebMouseEvent::ButtonLeft);
test_guest()->WaitForInput();
}
« no previous file with comments | « chrome/test/data/click_modifier/window_open.html ('k') | content/browser/plugin_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698