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

Unified Diff: chrome/test/data/webui/webui_resource_browsertest.cc

Issue 647483006: Fixed to return original context element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed to use event.type directly. Created 6 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
Index: chrome/test/data/webui/webui_resource_browsertest.cc
diff --git a/chrome/test/data/webui/webui_resource_browsertest.cc b/chrome/test/data/webui/webui_resource_browsertest.cc
index 661e06ff9c243c1273c7caed7a7cae78f47f5c9e..8629b64793713174011e802d6fc3d3f82dfe9d26 100644
--- a/chrome/test/data/webui/webui_resource_browsertest.cc
+++ b/chrome/test/data/webui/webui_resource_browsertest.cc
@@ -137,3 +137,17 @@ IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, RepeatingButtonTest) {
AddLibrary(IDR_WEBUI_JS_CR_UI_REPEATING_BUTTON);
RunTest(base::FilePath(FILE_PATH_LITERAL("repeating_button_test.html")));
}
+
+IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, ContextMenuHandlerTest) {
+ AddLibrary(IDR_WEBUI_JS_ASSERT);
+ AddLibrary(IDR_WEBUI_JS_EVENT_TRACKER);
+ AddLibrary(IDR_WEBUI_JS_CR);
+ AddLibrary(IDR_WEBUI_JS_CR_EVENT_TARGET);
+ AddLibrary(IDR_WEBUI_JS_CR_UI);
+ AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL);
+ AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_ITEM);
+ AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_BUTTON);
+ AddLibrary(IDR_WEBUI_JS_CR_UI_MENU);
+ AddLibrary(IDR_WEBUI_JS_CR_UI_CONTEXT_MENU_HANDLER);
+ RunTest(base::FilePath(FILE_PATH_LITERAL("context_menu_handler_test.html")));
+}

Powered by Google App Engine
This is Rietveld 408576698