Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(517)

Side by Side Diff: chrome/chrome_tests.gypi

Issue 8418015: Allow javascript unit tests using webui test_api framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Allow chrome.send to pass 1 arg, but check for "testResult". Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/webui/javascript2webui.js ('k') | chrome/test/base/js2gtest.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 { 5 {
6 'variables' : { 6 'variables' : {
7 # Variables for js2gtest rules
8 'gypv8sh': '../tools/gypv8sh.py',
9 'js2gtest': 'test/base/js2gtest.js',
10 'js2gtest_out_dir': '<(SHARED_INTERMEDIATE_DIR)/js2gtest',
11 'mock_js': 'third_party/mock4js/mock4js.js',
12 'test_api_js': 'test/data/webui/test_api.js',
13
7 'pyautolib_sources': [ 14 'pyautolib_sources': [
8 'app/chrome_command_ids.h', 15 'app/chrome_command_ids.h',
9 'app/chrome_dll_resource.h', 16 'app/chrome_dll_resource.h',
10 'common/automation_constants.h', 17 'common/automation_constants.h',
11 'common/pref_names.cc', 18 'common/pref_names.cc',
12 'common/pref_names.h', 19 'common/pref_names.h',
13 'test/automation/browser_proxy.cc', 20 'test/automation/browser_proxy.cc',
14 'test/automation/browser_proxy.h', 21 'test/automation/browser_proxy.h',
15 'test/automation/tab_proxy.cc', 22 'test/automation/tab_proxy.cc',
16 'test/automation/tab_proxy.h', 23 'test/automation/tab_proxy.h',
(...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after
1938 'service/service_process_unittest.cc', 1945 'service/service_process_unittest.cc',
1939 'test/base/browser_with_test_window_test.cc', 1946 'test/base/browser_with_test_window_test.cc',
1940 'test/base/browser_with_test_window_test.h', 1947 'test/base/browser_with_test_window_test.h',
1941 'test/base/chrome_render_view_test.cc', 1948 'test/base/chrome_render_view_test.cc',
1942 'test/base/chrome_render_view_test.h', 1949 'test/base/chrome_render_view_test.h',
1943 'test/base/menu_model_test.cc', 1950 'test/base/menu_model_test.cc',
1944 'test/base/menu_model_test.h', 1951 'test/base/menu_model_test.h',
1945 'test/base/v8_unit_test.cc', 1952 'test/base/v8_unit_test.cc',
1946 'test/base/v8_unit_test.h', 1953 'test/base/v8_unit_test.h',
1947 'test/data/resource.rc', 1954 'test/data/resource.rc',
1955 'test/data/unit/framework_unittest.js',
1948 'tools/convert_dict/convert_dict_unittest.cc', 1956 'tools/convert_dict/convert_dict_unittest.cc',
1949 '../content/browser/renderer_host/render_widget_host_unittest.cc', 1957 '../content/browser/renderer_host/render_widget_host_unittest.cc',
1950 '../content/browser/renderer_host/text_input_client_mac_unittest.mm', 1958 '../content/browser/renderer_host/text_input_client_mac_unittest.mm',
1951 '../content/browser/tab_contents/navigation_controller_unittest.cc', 1959 '../content/browser/tab_contents/navigation_controller_unittest.cc',
1952 '../content/browser/tab_contents/render_view_host_manager_unittest.cc', 1960 '../content/browser/tab_contents/render_view_host_manager_unittest.cc',
1953 '../content/common/sandbox_mac_diraccess_unittest.mm', 1961 '../content/common/sandbox_mac_diraccess_unittest.mm',
1954 '../content/common/sandbox_mac_fontloading_unittest.mm', 1962 '../content/common/sandbox_mac_fontloading_unittest.mm',
1955 '../content/common/sandbox_mac_unittest_helper.h', 1963 '../content/common/sandbox_mac_unittest_helper.h',
1956 '../content/common/sandbox_mac_unittest_helper.mm', 1964 '../content/common/sandbox_mac_unittest_helper.mm',
1957 '../content/common/sandbox_mac_system_access_unittest.mm', 1965 '../content/common/sandbox_mac_system_access_unittest.mm',
1958 '../testing/gtest_mac_unittest.mm', 1966 '../testing/gtest_mac_unittest.mm',
1959 '../third_party/cld/encodings/compact_lang_det/compact_lang_det_unittest _small.cc', 1967 '../third_party/cld/encodings/compact_lang_det/compact_lang_det_unittest _small.cc',
1960 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc', 1968 '../webkit/fileapi/file_system_dir_url_request_job_unittest.cc',
1961 '../webkit/fileapi/file_system_operation_write_unittest.cc', 1969 '../webkit/fileapi/file_system_operation_write_unittest.cc',
1962 '../webkit/fileapi/file_system_url_request_job_unittest.cc', 1970 '../webkit/fileapi/file_system_url_request_job_unittest.cc',
1963 '../webkit/fileapi/file_writer_delegate_unittest.cc', 1971 '../webkit/fileapi/file_writer_delegate_unittest.cc',
1964 '../webkit/fileapi/file_system_test_helper.cc', 1972 '../webkit/fileapi/file_system_test_helper.cc',
1965 '../webkit/fileapi/file_system_test_helper.h', 1973 '../webkit/fileapi/file_system_test_helper.h',
1966 '../webkit/quota/mock_storage_client.cc', 1974 '../webkit/quota/mock_storage_client.cc',
1967 '../webkit/quota/mock_storage_client.h', 1975 '../webkit/quota/mock_storage_client.h',
1968 ], 1976 ],
1977 'rules': [
1978 {
1979 'rule_name': 'js2unit',
1980 'extension': 'js',
1981 'msvs_external_rule': 1,
1982 'inputs': [
1983 '<(gypv8sh)',
1984 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)',
1985 '<(mock_js)',
1986 '<(test_api_js)',
1987 '<(js2gtest)',
1988 ],
1989 'outputs': [
1990 '<(js2gtest_out_dir)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT) .cc',
1991 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ ROOT).js',
1992 ],
1993 'process_outputs_as_sources': 1,
1994 'action': [
1995 'python',
1996 '<@(_inputs)',
1997 'unit',
1998 '<(RULE_INPUT_PATH)',
1999 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
2000 '<@(_outputs)',
2001 ],
2002 },
2003 ],
1969 'conditions': [ 2004 'conditions': [
2005 ['target_arch!="arm"', {
2006 'dependencies': [
2007 # build time dependency.
2008 '../v8/tools/gyp/v8.gyp:v8_shell#host',
2009 ],
2010 }],
1970 ['p2p_apis==1', { 2011 ['p2p_apis==1', {
1971 'sources': [ 2012 'sources': [
1972 '../content/browser/renderer_host/p2p/socket_host_test_utils.h', 2013 '../content/browser/renderer_host/p2p/socket_host_test_utils.h',
1973 '../content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc', 2014 '../content/browser/renderer_host/p2p/socket_host_tcp_unittest.cc',
1974 '../content/browser/renderer_host/p2p/socket_host_tcp_server_unittes t.cc', 2015 '../content/browser/renderer_host/p2p/socket_host_tcp_server_unittes t.cc',
1975 '../content/browser/renderer_host/p2p/socket_host_udp_unittest.cc', 2016 '../content/browser/renderer_host/p2p/socket_host_udp_unittest.cc',
1976 '../content/renderer/p2p/p2p_transport_impl_unittest.cc', 2017 '../content/renderer/p2p/p2p_transport_impl_unittest.cc',
1977 ], 2018 ],
1978 }], 2019 }],
1979 ['touchui==0', { 2020 ['touchui==0', {
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2276 ], 2317 ],
2277 }], 2318 }],
2278 ], 2319 ],
2279 }, 2320 },
2280 { 2321 {
2281 # Executable that runs each browser test in a new process. 2322 # Executable that runs each browser test in a new process.
2282 'target_name': 'browser_tests', 2323 'target_name': 'browser_tests',
2283 'type': 'executable', 2324 'type': 'executable',
2284 'msvs_cygwin_shell': 0, 2325 'msvs_cygwin_shell': 0,
2285 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'], 2326 'msvs_cygwin_dirs': ['<(DEPTH)/third_party/cygwin'],
2286 'variables': {
2287 'gypv8sh': '../tools/gypv8sh.py',
2288 'js2webui': 'browser/ui/webui/javascript2webui.js',
2289 'js2webui_out_dir': '<(SHARED_INTERMEDIATE_DIR)/js2webui',
2290 'mock_js': 'third_party/mock4js/mock4js.js',
2291 'test_api_js': 'test/data/webui/test_api.js',
2292 },
2293 'dependencies': [ 2327 'dependencies': [
2294 'browser', 2328 'browser',
2295 'browser/sync/protocol/sync_proto.gyp:sync_proto', 2329 'browser/sync/protocol/sync_proto.gyp:sync_proto',
2296 'chrome', 2330 'chrome',
2297 'chrome_resources', 2331 'chrome_resources',
2298 'chrome_strings', 2332 'chrome_strings',
2299 'renderer', 2333 'renderer',
2300 'test_support_common', 2334 'test_support_common',
2301 '../base/base.gyp:base', 2335 '../base/base.gyp:base',
2302 '../base/base.gyp:base_i18n', 2336 '../base/base.gyp:base_i18n',
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2638 'rules': [ 2672 'rules': [
2639 { 2673 {
2640 'rule_name': 'js2webui', 2674 'rule_name': 'js2webui',
2641 'extension': 'js', 2675 'extension': 'js',
2642 'msvs_external_rule': 1, 2676 'msvs_external_rule': 1,
2643 'inputs': [ 2677 'inputs': [
2644 '<(gypv8sh)', 2678 '<(gypv8sh)',
2645 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)', 2679 '<(PRODUCT_DIR)/v8_shell<(EXECUTABLE_SUFFIX)',
2646 '<(mock_js)', 2680 '<(mock_js)',
2647 '<(test_api_js)', 2681 '<(test_api_js)',
2648 '<(js2webui)', 2682 '<(js2gtest)',
2649 ], 2683 ],
2650 'outputs': [ 2684 'outputs': [
2651 '<(js2webui_out_dir)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT) .cc', 2685 '<(js2gtest_out_dir)/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT) .cc',
2652 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ ROOT).js', 2686 '<(PRODUCT_DIR)/test_data/chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ ROOT).js',
2653 ], 2687 ],
2654 'process_outputs_as_sources': 1, 2688 'process_outputs_as_sources': 1,
2655 'action': [ 2689 'action': [
2656 'python', 2690 'python',
2657 '<@(_inputs)', 2691 '<@(_inputs)',
2692 'webui',
2658 '<(RULE_INPUT_PATH)', 2693 '<(RULE_INPUT_PATH)',
2659 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js', 2694 'chrome/<(RULE_INPUT_DIRNAME)/<(RULE_INPUT_ROOT).js',
2660 '<@(_outputs)', 2695 '<@(_outputs)',
2661 ], 2696 ],
2662 }, 2697 },
2663 ], 2698 ],
2664 'conditions': [ 2699 'conditions': [
2665 ['chromeos==0', { 2700 ['chromeos==0', {
2666 'sources/': [ 2701 'sources/': [
2667 ['exclude', '^browser/chromeos'], 2702 ['exclude', '^browser/chromeos'],
(...skipping 1518 matching lines...) Expand 10 before | Expand all | Expand 10 after
4186 # Use outputs of this action as inputs for the main target build. 4221 # Use outputs of this action as inputs for the main target build.
4187 # Seems as a misnomer but makes this happy on Linux (scons). 4222 # Seems as a misnomer but makes this happy on Linux (scons).
4188 'process_outputs_as_sources': 1, 4223 'process_outputs_as_sources': 1,
4189 }, 4224 },
4190 ], # 'actions' 4225 ], # 'actions'
4191 }, 4226 },
4192 ] 4227 ]
4193 }], # 'coverage!=0' 4228 }], # 'coverage!=0'
4194 ], # 'conditions' 4229 ], # 'conditions'
4195 } 4230 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/javascript2webui.js ('k') | chrome/test/base/js2gtest.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698