OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 { | 5 { |
6 'includes': [ | 6 'includes': [ |
7 '../../../../js_unittest_vars.gypi', | 7 '../../../../js_unittest_vars.gypi', |
8 ], | 8 ], |
9 'variables': { | 9 'variables': { |
10 'chromevox_test_deps_js_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/re
sources/chromeos/chromevox/test_deps.js', | 10 'chromevox_test_deps_js_file': '<(SHARED_INTERMEDIATE_DIR)/chrome/browser/re
sources/chromeos/chromevox/test_deps.js', |
| 11 'chromevox_test_messages_js_file': '<(PRODUCT_DIR)/test_data/chrome/browser/
resources/chromeos/chromevox/host/testing/test_messages.js', |
11 }, | 12 }, |
12 'targets': [ | 13 'targets': [ |
13 { | 14 { |
14 'target_name': 'chromevox_tests', | 15 'target_name': 'chromevox_tests', |
15 'type': 'executable', | 16 'type': 'executable', |
16 'dependencies': [ | 17 'dependencies': [ |
17 '<(DEPTH)/base/base.gyp:base', | 18 '<(DEPTH)/base/base.gyp:base', |
18 '<(DEPTH)/base/base.gyp:base_i18n', | 19 '<(DEPTH)/base/base.gyp:base_i18n', |
19 '<(DEPTH)/base/base.gyp:test_support_base', | 20 '<(DEPTH)/base/base.gyp:test_support_base', |
20 '<(DEPTH)/chrome/chrome.gyp:browser', | 21 '<(DEPTH)/chrome/chrome.gyp:browser', |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 '<(DEPTH)/chrome/test/base/javascript_browser_test.cc', | 116 '<(DEPTH)/chrome/test/base/javascript_browser_test.cc', |
116 '<(DEPTH)/chrome/test/base/javascript_browser_test.h', | 117 '<(DEPTH)/chrome/test/base/javascript_browser_test.h', |
117 '<(DEPTH)/chrome/test/base/test_chrome_web_ui_controller_factory.cc', | 118 '<(DEPTH)/chrome/test/base/test_chrome_web_ui_controller_factory.cc', |
118 '<(DEPTH)/chrome/test/base/test_chrome_web_ui_controller_factory.h', | 119 '<(DEPTH)/chrome/test/base/test_chrome_web_ui_controller_factory.h', |
119 '<(DEPTH)/chrome/test/base/web_ui_browser_test.cc', | 120 '<(DEPTH)/chrome/test/base/web_ui_browser_test.cc', |
120 '<(DEPTH)/chrome/test/base/web_ui_browser_test.h', | 121 '<(DEPTH)/chrome/test/base/web_ui_browser_test.h', |
121 '<(DEPTH)/chrome/browser/extensions/browsertest_util.cc', | 122 '<(DEPTH)/chrome/browser/extensions/browsertest_util.cc', |
122 '<(DEPTH)/chrome/browser/extensions/browsertest_util.h', | 123 '<(DEPTH)/chrome/browser/extensions/browsertest_util.h', |
123 | 124 |
124 'common/aria_util_test.js', | 125 'common/aria_util_test.js', |
| 126 'common/braille_util_test.js', |
125 'common/command_store_test.js', | 127 'common/command_store_test.js', |
126 'common/cursor_selection_test.js', | 128 'common/cursor_selection_test.js', |
127 'common/editable_text_area_shadow_test.js', | 129 'common/editable_text_area_shadow_test.js', |
128 'common/editable_text_test.js', | 130 'common/editable_text_test.js', |
129 'common/find_util_test.js', | 131 'common/find_util_test.js', |
130 'common/key_sequence_test.js', | 132 'common/key_sequence_test.js', |
131 'common/math_semantic_tree_test.js', | 133 'common/math_semantic_tree_test.js', |
132 'common/page_selection_test.js', | 134 'common/page_selection_test.js', |
133 'common/selection_util_test.js', | 135 'common/selection_util_test.js', |
134 'common/spannable_test.js', | 136 'common/spannable_test.js', |
135 ], | 137 ], |
136 'conditions': [ | 138 'conditions': [ |
137 ['use_chromevox_next==1', { | 139 ['use_chromevox_next==1', { |
138 'sources': ['../chromevox2/cvox2/background/background.extjs'], | 140 'sources': ['../chromevox2/cvox2/background/background.extjs'], |
139 }], | 141 }], |
140 ], | 142 ], |
141 }, # target chromevox_tests | 143 }, # target chromevox_tests |
142 { | 144 { |
| 145 'target_name': 'chromevox_test_messages_js', |
| 146 'type': 'none', |
| 147 'actions': [ |
| 148 { |
| 149 'action_name': 'test_messages_js', |
| 150 'message': 'Generate <(_target_name)', |
| 151 'variables': { |
| 152 'english_messages_file': '<(chromevox_dest_dir)/_locales/en/messages
.json', |
| 153 }, |
| 154 'inputs': [ |
| 155 'tools/generate_test_messages.py', |
| 156 '<(english_messages_file)', |
| 157 ], |
| 158 'outputs': [ |
| 159 '<(chromevox_test_messages_js_file)', |
| 160 ], |
| 161 'action': [ |
| 162 'python', |
| 163 'tools/generate_test_messages.py', |
| 164 '-o', '<(chromevox_test_messages_js_file)', |
| 165 '<(english_messages_file)', |
| 166 ], |
| 167 }, |
| 168 ], |
| 169 }, # target chromevox_test_messages_js |
| 170 { |
143 'target_name': 'chromevox_test_deps_js', | 171 'target_name': 'chromevox_test_deps_js', |
144 'type': 'none', | 172 'type': 'none', |
145 'actions': [ | 173 'actions': [ |
146 { | 174 { |
147 'action_name': 'deps_js', | 175 'action_name': 'deps_js', |
148 'message': 'Generate <(_target_name)', | 176 'message': 'Generate <(_target_name)', |
149 'variables': { | 177 'variables': { |
150 # Closure library directory relative to source tree root. | 178 # Closure library directory relative to source tree root. |
151 'closure_dir': 'chrome/third_party/chromevox/third_party/closure-lib
rary/closure/goog', | 179 'closure_dir': 'chrome/third_party/chromevox/third_party/closure-lib
rary/closure/goog', |
152 'depswriter_path': 'tools/generate_deps.py', | 180 'depswriter_path': 'tools/generate_deps.py', |
153 'js_files': [ | 181 'js_files': [ |
154 '<!@(python tools/find_js_files.py . <(DEPTH)/<(closure_dir))', | 182 '<!@(python tools/find_js_files.py . <(DEPTH)/<(closure_dir))', |
| 183 '<(chromevox_test_messages_js_file)', |
155 ], | 184 ], |
156 }, | 185 }, |
157 'inputs': [ | 186 'inputs': [ |
158 '<@(js_files)', | 187 '<@(js_files)', |
159 '<(depswriter_path)', | 188 '<(depswriter_path)', |
160 ], | 189 ], |
161 'outputs': [ | 190 'outputs': [ |
162 '<(chromevox_test_deps_js_file)', | 191 '<(chromevox_test_deps_js_file)', |
163 ], | 192 ], |
164 'action': [ | 193 'action': [ |
165 'python', | 194 'python', |
166 '<(depswriter_path)', | 195 '<(depswriter_path)', |
167 '-w', '<(DEPTH)/<(closure_dir):<(closure_dir)', | 196 '-w', '<(DEPTH)/<(closure_dir):<(closure_dir)', |
| 197 '-w', '<(PRODUCT_DIR)/test_data:', |
168 '-w', ':chrome/browser/resources/chromeos/chromevox', | 198 '-w', ':chrome/browser/resources/chromeos/chromevox', |
169 '-o', '<(chromevox_test_deps_js_file)', | 199 '-o', '<(chromevox_test_deps_js_file)', |
170 '<@(js_files)', | 200 '<@(js_files)', |
171 ], | 201 ], |
172 }, | 202 }, |
173 ], | 203 ], |
174 }, | 204 'dependencies': [ |
| 205 'chromevox_test_messages_js', |
| 206 ], |
| 207 }, # target chromevox_test_deps_js |
175 ], | 208 ], |
176 } | 209 } |
OLD | NEW |