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

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: Address comments. Created 5 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 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 c4476834eef8973ce3dfec89c4b4f165c505e4d7..6fe54c591a2949e9331b44f3d6b2e7d0e626d110 100644
--- a/chrome/test/data/webui/webui_resource_browsertest.cc
+++ b/chrome/test/data/webui/webui_resource_browsertest.cc
@@ -173,3 +173,17 @@ IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, CommandTest) {
AddLibrary(IDR_WEBUI_JS_CR_UI_COMMAND);
RunTest(base::FilePath(FILE_PATH_LITERAL("command_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")));
+}
« no previous file with comments | « chrome/test/data/webui/context_menu_handler_test.html ('k') | ui/webui/resources/js/cr/ui/context_menu_handler.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698