| 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 "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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 } | 99 } |
| 100 | 100 |
| 101 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, ListSingleSelectionModelTest) { | 101 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, ListSingleSelectionModelTest) { |
| 102 AddLibrary(IDR_WEBUI_JS_CR); | 102 AddLibrary(IDR_WEBUI_JS_CR); |
| 103 AddLibrary(IDR_WEBUI_JS_CR_EVENT_TARGET); | 103 AddLibrary(IDR_WEBUI_JS_CR_EVENT_TARGET); |
| 104 AddLibrary(IDR_WEBUI_JS_CR_UI_LIST_SINGLE_SELECTION_MODEL); | 104 AddLibrary(IDR_WEBUI_JS_CR_UI_LIST_SINGLE_SELECTION_MODEL); |
| 105 RunTest(base::FilePath(FILE_PATH_LITERAL( | 105 RunTest(base::FilePath(FILE_PATH_LITERAL( |
| 106 "list_single_selection_model_test.html"))); | 106 "list_single_selection_model_test.html"))); |
| 107 } | 107 } |
| 108 | 108 |
| 109 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, LocalStringsTest) { | |
| 110 AddLibrary(IDR_WEBUI_JS_LOCAL_STRINGS); | |
| 111 RunTest(base::FilePath(FILE_PATH_LITERAL("local_strings_test.html"))); | |
| 112 } | |
| 113 | |
| 114 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, MenuTest) { | 109 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, MenuTest) { |
| 115 AddLibrary(IDR_WEBUI_JS_ASSERT); | 110 AddLibrary(IDR_WEBUI_JS_ASSERT); |
| 116 AddLibrary(IDR_WEBUI_JS_CR); | 111 AddLibrary(IDR_WEBUI_JS_CR); |
| 117 AddLibrary(IDR_WEBUI_JS_CR_UI); | 112 AddLibrary(IDR_WEBUI_JS_CR_UI); |
| 118 AddLibrary(IDR_WEBUI_JS_CR_UI_COMMAND); | 113 AddLibrary(IDR_WEBUI_JS_CR_UI_COMMAND); |
| 119 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_ITEM); | 114 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU_ITEM); |
| 120 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU); | 115 AddLibrary(IDR_WEBUI_JS_CR_UI_MENU); |
| 121 RunTest(base::FilePath(FILE_PATH_LITERAL("menu_test.html"))); | 116 RunTest(base::FilePath(FILE_PATH_LITERAL("menu_test.html"))); |
| 122 } | 117 } |
| 123 | 118 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 135 AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL); | 130 AddLibrary(IDR_WEBUI_JS_CR_UI_POSITION_UTIL); |
| 136 RunTest(base::FilePath(FILE_PATH_LITERAL("position_util_test.html"))); | 131 RunTest(base::FilePath(FILE_PATH_LITERAL("position_util_test.html"))); |
| 137 } | 132 } |
| 138 | 133 |
| 139 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, RepeatingButtonTest) { | 134 IN_PROC_BROWSER_TEST_F(WebUIResourceBrowserTest, RepeatingButtonTest) { |
| 140 AddLibrary(IDR_WEBUI_JS_CR); | 135 AddLibrary(IDR_WEBUI_JS_CR); |
| 141 AddLibrary(IDR_WEBUI_JS_CR_UI); | 136 AddLibrary(IDR_WEBUI_JS_CR_UI); |
| 142 AddLibrary(IDR_WEBUI_JS_CR_UI_REPEATING_BUTTON); | 137 AddLibrary(IDR_WEBUI_JS_CR_UI_REPEATING_BUTTON); |
| 143 RunTest(base::FilePath(FILE_PATH_LITERAL("repeating_button_test.html"))); | 138 RunTest(base::FilePath(FILE_PATH_LITERAL("repeating_button_test.html"))); |
| 144 } | 139 } |
| OLD | NEW |