diff options
Diffstat (limited to 'chrome/test/ui/npapi_uitest.cc')
-rw-r--r-- | chrome/test/ui/npapi_uitest.cc | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/chrome/test/ui/npapi_uitest.cc b/chrome/test/ui/npapi_uitest.cc index e2d0336..f7df01f 100644 --- a/chrome/test/ui/npapi_uitest.cc +++ b/chrome/test/ui/npapi_uitest.cc @@ -428,3 +428,24 @@ TEST_F(NPAPIVisiblePluginTester, PluginReferrerTest) { kTestCompleteSuccess, kShortWaitTimeout); } +#if defined(OS_MACOSX) +TEST_F(NPAPIVisiblePluginTester, PluginConvertPointTest) { + if (UITest::in_process_renderer()) + return; + + scoped_refptr<BrowserProxy> browser(automation()->GetBrowserWindow(0)); + scoped_refptr<WindowProxy> window(browser->GetWindow()); + window->SetBounds(gfx::Rect(100, 100, 600, 600)); + + GURL url(URLRequestMockHTTPJob::GetMockUrl( + FilePath(FILE_PATH_LITERAL("npapi/convert_point.html")))); + NavigateToURL(url); + + // TODO(stuartmorgan): When the automation system supports sending clicks, + // change the test to trigger on mouse-down rather than window focus. + browser->BringToFront(); + WaitForFinish("convert_point", "1", url, kTestCompleteCookie, + kTestCompleteSuccess, kShortWaitTimeout); +} +#endif + |