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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
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) { |
239 AddLibrary(IDR_WEBUI_JS_UTIL); | 239 AddLibrary(IDR_WEBUI_JS_UTIL); |
240 LoadFile(base::FilePath(FILE_PATH_LITERAL("util_test.html"))); | 240 LoadFile(base::FilePath(FILE_PATH_LITERAL("util_test.html"))); |
241 } | 241 } |
242 | |
243 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, PromiseResolverTest) { | |
244 AddLibrary(IDR_WEBUI_JS_ASSERT); | |
245 AddLibrary(IDR_WEBUI_JS_PROMISE_RESOLVER); | |
246 LoadFile(base::FilePath(FILE_PATH_LITERAL("promise_resolver_test.html"))); | |
dpapad
2016/04/08 22:32:49
Thanks for adding tests! Just one comment/question
Dan Beam
2016/04/08 23:11:21
as per offline convo, i'll add a TODO to deprecate
| |
247 } | |
OLD | NEW |