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

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: Remove setTimeout from test code. 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 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 RunTest(base::FilePath(FILE_PATH_LITERAL("repeating_button_test.html"))); 166 RunTest(base::FilePath(FILE_PATH_LITERAL("repeating_button_test.html")));
167 } 167 }
168 168
169 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, CommandTest) { 169 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, CommandTest) {
170 AddLibrary(IDR_WEBUI_JS_ASSERT); 170 AddLibrary(IDR_WEBUI_JS_ASSERT);
171 AddLibrary(IDR_WEBUI_JS_CR); 171 AddLibrary(IDR_WEBUI_JS_CR);
172 AddLibrary(IDR_WEBUI_JS_CR_UI); 172 AddLibrary(IDR_WEBUI_JS_CR_UI);
173 AddLibrary(IDR_WEBUI_JS_CR_UI_COMMAND); 173 AddLibrary(IDR_WEBUI_JS_CR_UI_COMMAND);
174 RunTest(base::FilePath(FILE_PATH_LITERAL("command_test.html"))); 174 RunTest(base::FilePath(FILE_PATH_LITERAL("command_test.html")));
175 } 175 }
176
177 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, ContextMenuHandlerTest) {
178 AddLibrary(IDR_WEBUI_JS_ASSERT);
179 AddLibrary(IDR_WEBUI_JS_EVENT_TRACKER);
180 AddLibrary(IDR_WEBUI_JS_CR);
181 AddLibrary(IDR_WEBUI_JS_CR_EVENT_TARGET);
182 AddLibrary(IDR_WEBUI_JS_CR_UI);
183 AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL);
184 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_ITEM);
185 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_BUTTON);
186 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU);
187 AddLibrary(IDR_WEBUI_JS_CR_UI_CONTEXT_MENU_HANDLER);
188 RunTest(base::FilePath(FILE_PATH_LITERAL("context_menu_handler_test.html")));
189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698