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

Side by Side Diff: chrome/test/data/webui/webui_resource_browsertest.cc

Issue 1178783003: Add menuhide event to menu button. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove initUIEvent. Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <vector> 5 #include <vector>
6 6
7 #include "base/path_service.h" 7 #include "base/path_service.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/tabs/tab_strip_model.h" 9 #include "chrome/browser/ui/tabs/tab_strip_model.h"
10 #include "chrome/grit/options_test_resources.h" 10 #include "chrome/grit/options_test_resources.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 AddLibrary(IDR_WEBUI_JS_CR); 180 AddLibrary(IDR_WEBUI_JS_CR);
181 AddLibrary(IDR_WEBUI_JS_CR_EVENT_TARGET); 181 AddLibrary(IDR_WEBUI_JS_CR_EVENT_TARGET);
182 AddLibrary(IDR_WEBUI_JS_CR_UI); 182 AddLibrary(IDR_WEBUI_JS_CR_UI);
183 AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL); 183 AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL);
184 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_ITEM); 184 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_ITEM);
185 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_BUTTON); 185 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_BUTTON);
186 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU); 186 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU);
187 AddLibrary(IDR_WEBUI_JS_CR_UI_CONTEXT_MENU_HANDLER); 187 AddLibrary(IDR_WEBUI_JS_CR_UI_CONTEXT_MENU_HANDLER);
188 RunTest(base::FilePath(FILE_PATH_LITERAL("context_menu_handler_test.html"))); 188 RunTest(base::FilePath(FILE_PATH_LITERAL("context_menu_handler_test.html")));
189 } 189 }
190
191 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, MenuButtonTest) {
192 AddLibrary(IDR_WEBUI_JS_ASSERT);
193 AddLibrary(IDR_WEBUI_JS_EVENT_TRACKER);
194 AddLibrary(IDR_WEBUI_JS_CR);
195 AddLibrary(IDR_WEBUI_JS_CR_UI);
196 AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL);
197 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_BUTTON);
198 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU);
199 RunTest(base::FilePath(FILE_PATH_LITERAL("menu_button_test.html")));
200 }
OLDNEW
« no previous file with comments | « chrome/test/data/webui/menu_button_test.html ('k') | ui/webui/resources/js/cr/ui/menu_button.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698