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

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: Rebase again. Created 6 years, 1 month 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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 140
141 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, CommandTest) { 141 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, CommandTest) {
142 AddLibrary(IDR_WEBUI_JS_ASSERT); 142 AddLibrary(IDR_WEBUI_JS_ASSERT);
143 AddLibrary(IDR_WEBUI_JS_CR); 143 AddLibrary(IDR_WEBUI_JS_CR);
144 AddLibrary(IDR_WEBUI_JS_CR_UI); 144 AddLibrary(IDR_WEBUI_JS_CR_UI);
145 AddLibrary(IDR_WEBUI_JS_CR_UI_COMMAND); 145 AddLibrary(IDR_WEBUI_JS_CR_UI_COMMAND);
146 RunTest(base::FilePath(FILE_PATH_LITERAL("command_test.html"))); 146 RunTest(base::FilePath(FILE_PATH_LITERAL("command_test.html")));
147 } 147 }
148
149 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, ContextMenuHandlerTest) {
150 AddLibrary(IDR_WEBUI_JS_ASSERT);
151 AddLibrary(IDR_WEBUI_JS_EVENT_TRACKER);
152 AddLibrary(IDR_WEBUI_JS_CR);
153 AddLibrary(IDR_WEBUI_JS_CR_EVENT_TARGET);
154 AddLibrary(IDR_WEBUI_JS_CR_UI);
155 AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL);
156 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_ITEM);
157 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_BUTTON);
158 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU);
159 AddLibrary(IDR_WEBUI_JS_CR_UI_CONTEXT_MENU_HANDLER);
160 RunTest(base::FilePath(FILE_PATH_LITERAL("context_menu_handler_test.html")));
161 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698