OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |