| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 # This file defines rules that allow you to include JavaScript tests in | 5 # This file defines rules that allow you to include JavaScript tests in |
| 6 # your unittests target. | 6 # your unittests target. |
| 7 | 7 |
| 8 # To add JS unittests to an existing unittest target, first include | 8 # To add JS unittests to an existing unittest target, first include |
| 9 # 'js_unittest_vars.gypi' at the top of your GYP file to define the required | 9 # 'js_unittest_vars.gypi' at the top of your GYP file to define the required |
| 10 # variables: | 10 # variables: |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 ], | 53 ], |
| 54 }, | 54 }, |
| 55 { | 55 { |
| 56 'rule_name': 'js2unit', | 56 'rule_name': 'js2unit', |
| 57 'extension': 'gtestjs', | 57 'extension': 'gtestjs', |
| 58 'msvs_external_rule': 1, | 58 'msvs_external_rule': 1, |
| 59 'inputs': [ | 59 'inputs': [ |
| 60 '<(gypv8sh)', | 60 '<(gypv8sh)', |
| 61 '<(PRODUCT_DIR)/d8<(EXECUTABLE_SUFFIX)', | 61 '<(PRODUCT_DIR)/d8<(EXECUTABLE_SUFFIX)', |
| 62 '<(mock_js)', | 62 '<(mock_js)', |
| 63 '<(accessibility_audit_js)', | |
| 64 '<(test_api_js)', | 63 '<(test_api_js)', |
| 65 '<(js2gtest)', | 64 '<(js2gtest)', |
| 66 ], | 65 ], |
| 67 'outputs': [ | 66 'outputs': [ |
| 68 '<(INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-gen
.cc', | 67 '<(INTERMEDIATE_DIR)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT)-gen
.cc', |
| 69 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT
).<(_extension)', | 68 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT
).<(_extension)', |
| 70 ], | 69 ], |
| 71 'process_outputs_as_sources': 1, | 70 'process_outputs_as_sources': 1, |
| 72 'action': [ | 71 'action': [ |
| 73 'python', | 72 'python', |
| 74 '<@(_inputs)', | 73 '<@(_inputs)', |
| 75 'unit', | 74 'unit', |
| 76 '<(RULE_INPUT_PATH)', | 75 '<(RULE_INPUT_PATH)', |
| 77 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).<(_extension)', | 76 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).<(_extension)', |
| 78 '<@(_outputs)', | 77 '<@(_outputs)', |
| 79 ], | 78 ], |
| 80 }, | 79 }, |
| 81 ], | 80 ], |
| 82 } | 81 } |
| OLD | NEW |