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

Side by Side 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 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 "chrome/browser/ui/browser.h" 7 #include "chrome/browser/ui/browser.h"
8 #include "chrome/browser/ui/tabs/tab_strip_model.h" 8 #include "chrome/browser/ui/tabs/tab_strip_model.h"
9 #include "chrome/test/base/in_process_browser_test.h" 9 #include "chrome/test/base/in_process_browser_test.h"
10 #include "chrome/test/base/ui_test_utils.h" 10 #include "chrome/test/base/ui_test_utils.h"
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL); 130 AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL);
131 RunTest(base::FilePath(FILE_PATH_LITERAL("position_util_test.html"))); 131 RunTest(base::FilePath(FILE_PATH_LITERAL("position_util_test.html")));
132 } 132 }
133 133
134 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, RepeatingButtonTest) { 134 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, RepeatingButtonTest) {
135 AddLibrary(IDR_WEBUI_JS_CR); 135 AddLibrary(IDR_WEBUI_JS_CR);
136 AddLibrary(IDR_WEBUI_JS_CR_UI); 136 AddLibrary(IDR_WEBUI_JS_CR_UI);
137 AddLibrary(IDR_WEBUI_JS_CR_UI_REPEATING_BUTTON); 137 AddLibrary(IDR_WEBUI_JS_CR_UI_REPEATING_BUTTON);
138 RunTest(base::FilePath(FILE_PATH_LITERAL("repeating_button_test.html"))); 138 RunTest(base::FilePath(FILE_PATH_LITERAL("repeating_button_test.html")));
139 } 139 }
140
141 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, ContextMenuHandlerTest) {
142 AddLibrary(IDR_WEBUI_JS_ASSERT);
143 AddLibrary(IDR_WEBUI_JS_EVENT_TRACKER);
144 AddLibrary(IDR_WEBUI_JS_CR);
145 AddLibrary(IDR_WEBUI_JS_CR_EVENT_TARGET);
146 AddLibrary(IDR_WEBUI_JS_CR_UI);
147 AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL);
148 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_ITEM);
149 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_BUTTON);
150 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU);
151 AddLibrary(IDR_WEBUI_JS_CR_UI_CONTEXT_MENU_HANDLER);
152 RunTest(base::FilePath(FILE_PATH_LITERAL("context_menu_handler_test.html")));
153 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698