Index: chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
diff --git a/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc b/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
index 99c25fe77969af81f60b3f6af466507c679da019..aa7524cb2a7ae20df77448d2e851d1e7a5343fb8 100644 |
--- a/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
+++ b/chrome/browser/renderer_context_menu/render_view_context_menu_browsertest.cc |
@@ -77,6 +77,19 @@ IN_PROC_BROWSER_TEST_F(ContextMenuBrowserTest, |
ASSERT_TRUE(menu->IsItemPresent(IDC_CONTENT_CONTEXT_COPYLINKLOCATION)); |
} |
+IN_PROC_BROWSER_TEST_F(ContextMenuBrowserTest, |
+ SaveAsImageForCanvas) { |
+ content::ContextMenuParams params; |
+ params.media_type = blink::WebContextMenuData::MediaTypeCanvas; |
+ |
+ TestRenderViewContextMenu menu( |
+ browser()->tab_strip_model()->GetActiveWebContents()->GetMainFrame(), |
+ params); |
+ menu.Init(); |
+ |
+ ASSERT_TRUE(menu.IsItemPresent(IDC_CONTENT_CONTEXT_SAVEIMAGEAS)); |
+} |
+ |
// GTK requires a X11-level mouse event to open a context menu correctly. |
#if defined(TOOLKIT_GTK) |
#define MAYBE_RealMenu DISABLED_RealMenu |