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

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

Issue 1919183005: Cleanup: Extract icon related methods outside of util.js (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename favicon.html to icon.html Created 4 years, 7 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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 LoadFile(base::FilePath(FILE_PATH_LITERAL("menu_button_test.html"))); 228 LoadFile(base::FilePath(FILE_PATH_LITERAL("menu_button_test.html")));
229 } 229 }
230 230
231 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, SplitterTest) { 231 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, SplitterTest) {
232 AddLibrary(IDR_WEBUI_JS_CR); 232 AddLibrary(IDR_WEBUI_JS_CR);
233 AddLibrary(IDR_WEBUI_JS_CR_UI); 233 AddLibrary(IDR_WEBUI_JS_CR_UI);
234 AddLibrary(IDR_WEBUI_JS_CR_UI_SPLITTER); 234 AddLibrary(IDR_WEBUI_JS_CR_UI_SPLITTER);
235 LoadFile(base::FilePath(FILE_PATH_LITERAL("splitter_test.html"))); 235 LoadFile(base::FilePath(FILE_PATH_LITERAL("splitter_test.html")));
236 } 236 }
237 237
238 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, UtilTest) { 238 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, UtilTest) {
Dan Beam 2016/05/06 22:39:06 doesn't this need a: AddLibrary(IDR_WEBUI_JS_CR
dpapad 2016/05/06 22:56:33 Strictly speaking it is not needed. The non-favico
Dan Beam 2016/05/06 23:01:55 Acknowledged.
239 AddLibrary(IDR_WEBUI_JS_UTIL);
240 LoadFile(base::FilePath(FILE_PATH_LITERAL("util_test.html")));
241 }
242
243 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, IconTest) {
239 AddLibrary(IDR_WEBUI_JS_CR); 244 AddLibrary(IDR_WEBUI_JS_CR);
240 AddLibrary(IDR_WEBUI_JS_UTIL); 245 AddLibrary(IDR_WEBUI_JS_UTIL);
241 LoadFile(base::FilePath(FILE_PATH_LITERAL("util_test.html"))); 246 AddLibrary(IDR_WEBUI_JS_ICON);
247 LoadFile(base::FilePath(FILE_PATH_LITERAL("icon_test.html")));
242 } 248 }
243 249
244 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, PromiseResolverTest) { 250 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, PromiseResolverTest) {
245 AddLibrary(IDR_WEBUI_JS_ASSERT); 251 AddLibrary(IDR_WEBUI_JS_ASSERT);
246 AddLibrary(IDR_WEBUI_JS_PROMISE_RESOLVER); 252 AddLibrary(IDR_WEBUI_JS_PROMISE_RESOLVER);
247 LoadFile(base::FilePath(FILE_PATH_LITERAL("promise_resolver_test.html"))); 253 LoadFile(base::FilePath(FILE_PATH_LITERAL("promise_resolver_test.html")));
248 } 254 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698