| 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 AddLibrary(IDR_WEBUI_JS_CR); | 239 AddLibrary(IDR_WEBUI_JS_CR); |
| 240 AddLibrary(IDR_WEBUI_JS_UTIL); | 240 AddLibrary(IDR_WEBUI_JS_UTIL); |
| 241 LoadFile(base::FilePath(FILE_PATH_LITERAL("util_test.html"))); | 241 LoadFile(base::FilePath(FILE_PATH_LITERAL("util_test.html"))); |
| 242 } | 242 } |
| 243 | 243 |
| 244 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, PromiseResolverTest) { | 244 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, PromiseResolverTest) { |
| 245 AddLibrary(IDR_WEBUI_JS_ASSERT); | 245 AddLibrary(IDR_WEBUI_JS_ASSERT); |
| 246 AddLibrary(IDR_WEBUI_JS_PROMISE_RESOLVER); | 246 AddLibrary(IDR_WEBUI_JS_PROMISE_RESOLVER); |
| 247 LoadFile(base::FilePath(FILE_PATH_LITERAL("promise_resolver_test.html"))); | 247 LoadFile(base::FilePath(FILE_PATH_LITERAL("promise_resolver_test.html"))); |
| 248 } | 248 } |
| 249 |
| 250 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, I18nBehaviorTest) { |
| 251 AddLibrary(IDR_WEBUI_JS_LOAD_TIME_DATA); |
| 252 AddLibrary(IDR_WEBUI_JS_PARSE_HTML_SUBSET); |
| 253 AddLibrary(IDR_WEBUI_JS_I18N_BEHAVIOR); |
| 254 LoadFile(base::FilePath(FILE_PATH_LITERAL("i18n_behavior_test.html"))); |
| 255 } |
| OLD | NEW |