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

Side by Side Diff: remoting/remoting_webapp_files.gypi

Issue 959963002: [Chromoting] Enable jscompile for webapp unittests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename sinon.$testStub -> sinon.TestStub Created 5 years, 9 months 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
OLDNEW
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 'variables': { 6 'variables': {
7 'remoting_webapp_info_files': [ 7 'remoting_webapp_info_files': [
8 'resources/chromoting16.webp', 8 'resources/chromoting16.webp',
9 'resources/chromoting48.webp', 9 'resources/chromoting48.webp',
10 'resources/chromoting128.webp', 10 'resources/chromoting128.webp',
11 ], 11 ],
12 12
13 # Jscompile proto files. 13 # Jscompile proto files.
14 # These provide type information for jscompile. 14 # These provide type information for jscompile.
15 'remoting_webapp_js_proto_files': [ 15 'remoting_webapp_js_proto_files': [
16 'webapp/js_proto/chrome_proto.js', 16 'webapp/js_proto/chrome_proto.js',
17 'webapp/js_proto/chrome_cast_proto.js',
18 'webapp/js_proto/chrome_event_proto.js',
17 'webapp/js_proto/dom_proto.js', 19 'webapp/js_proto/dom_proto.js',
18 'webapp/js_proto/remoting_proto.js', 20 'webapp/js_proto/remoting_proto.js',
19 'webapp/js_proto/test_proto.js',
20 ], 21 ],
21 22
22 # 23 #
23 # Webapp browsertest and unittest JavaScript files. 24 # Webapp browsertest JavaScript files.
24 # 25 #
25 26
26 # Shared files for tests.
27 'remoting_webapp_test_js_common_files': [
28 'webapp/unittests/mock_signal_strategy.js',
29 ],
30 # Browser test files. 27 # Browser test files.
31 'remoting_webapp_browsertest_js_files': [ 28 'remoting_webapp_browsertest_js_files': [
32 'webapp/browser_test/browser_test.js', 29 'webapp/browser_test/browser_test.js',
33 'webapp/browser_test/bump_scroll_browser_test.js', 30 'webapp/browser_test/bump_scroll_browser_test.js',
34 'webapp/browser_test/cancel_pin_browser_test.js', 31 'webapp/browser_test/cancel_pin_browser_test.js',
35 'webapp/browser_test/invalid_pin_browser_test.js', 32 'webapp/browser_test/invalid_pin_browser_test.js',
36 'webapp/browser_test/it2me_browser_test.js', 33 'webapp/browser_test/it2me_browser_test.js',
34 'webapp/browser_test/scrollbar_browser_test.js',
35 'webapp/browser_test/timeout_waiter.js',
36 'webapp/browser_test/unauthenticated_browser_test.js',
37 'webapp/browser_test/update_pin_browser_test.js',
38 ],
39 # Browser test files.
40 'remoting_webapp_browsertest_js_mock_files': [
37 'webapp/browser_test/mock_client_plugin.js', 41 'webapp/browser_test/mock_client_plugin.js',
38 'webapp/browser_test/mock_host_list_api.js', 42 'webapp/browser_test/mock_host_list_api.js',
39 'webapp/browser_test/mock_identity.js', 43 'webapp/browser_test/mock_identity.js',
40 'webapp/browser_test/mock_oauth2_api.js', 44 'webapp/browser_test/mock_oauth2_api.js',
41 'webapp/browser_test/mock_session_connector.js', 45 'webapp/browser_test/mock_session_connector.js',
42 'webapp/browser_test/scrollbar_browser_test.js', 46 'webapp/unittests/mock_signal_strategy.js',
43 'webapp/browser_test/timeout_waiter.js', 47 ],
44 'webapp/browser_test/unauthenticated_browser_test.js', 48 'remoting_webapp_browsertest_js_proto_files': [
45 'webapp/browser_test/update_pin_browser_test.js', 49 'webapp/js_proto/sinon_proto.js',
50 'webapp/js_proto/test_proto.js',
51 '<@(remoting_webapp_js_proto_files)',
46 ], 52 ],
47 'remoting_webapp_browsertest_all_js_files': [ 53 'remoting_webapp_browsertest_all_js_files': [
48 '<@(remoting_webapp_browsertest_js_files)', 54 '<@(remoting_webapp_browsertest_js_files)',
49 '<@(remoting_webapp_test_js_common_files)', 55 '<@(remoting_webapp_browsertest_js_mock_files)',
50 ], 56 ],
51 57
58 #
59 # Webapp unittest JavaScript files.
60 #
61
52 # These product files are excluded from our JavaScript unittest 62 # These product files are excluded from our JavaScript unittest
53 'remoting_webapp_unittest_exclude_js_files': [ 63 'remoting_webapp_unittest_exclude_js_files': [
54 # background.js is where the onLoad handler is defined, which 64 # background.js is where the onLoad handler is defined, which
55 # makes it the entry point of the background page. 65 # makes it the entry point of the background page.
56 'webapp/crd/js/background.js', 66 'webapp/crd/js/background.js',
57 ], 67 ],
58 # The unit test cases for the webapp 68 # The unit test cases for the webapp
59 'remoting_webapp_unittest_js_files': [ 69 'remoting_webapp_unittest_js_files': [
60 'webapp/unittests/chrome_mocks.js',
61 'webapp/js_proto/chrome_proto.js',
62 'webapp/unittests/apps_v2_migration_unittest.js', 70 'webapp/unittests/apps_v2_migration_unittest.js',
63 'webapp/unittests/base_unittest.js', 71 'webapp/unittests/base_unittest.js',
64 'webapp/unittests/desktop_viewport_unittest.js', 72 'webapp/unittests/desktop_viewport_unittest.js',
65 'webapp/unittests/dns_blackhole_checker_unittest.js', 73 'webapp/unittests/dns_blackhole_checker_unittest.js',
66 'webapp/unittests/event_hook_unittest.js', 74 'webapp/unittests/event_hook_unittest.js',
67 'webapp/unittests/fallback_signal_strategy_unittest.js', 75 'webapp/unittests/fallback_signal_strategy_unittest.js',
68 'webapp/unittests/ipc_unittest.js', 76 'webapp/unittests/ipc_unittest.js',
69 'webapp/unittests/it2me_helpee_channel_unittest.js', 77 'webapp/unittests/it2me_helpee_channel_unittest.js',
70 'webapp/unittests/it2me_helper_channel_unittest.js', 78 'webapp/unittests/it2me_helper_channel_unittest.js',
71 'webapp/unittests/it2me_service_unittest.js', 79 'webapp/unittests/it2me_service_unittest.js',
72 'webapp/unittests/l10n_unittest.js', 80 'webapp/unittests/l10n_unittest.js',
73 'webapp/unittests/menu_button_unittest.js', 81 'webapp/unittests/menu_button_unittest.js',
74 'webapp/unittests/xhr_unittest.js', 82 'webapp/unittests/xhr_unittest.js',
75 'webapp/unittests/xmpp_connection_unittest.js', 83 'webapp/unittests/xmpp_connection_unittest.js',
76 'webapp/unittests/xmpp_login_handler_unittest.js', 84 'webapp/unittests/xmpp_login_handler_unittest.js',
77 'webapp/unittests/xmpp_stream_parser_unittest.js', 85 'webapp/unittests/xmpp_stream_parser_unittest.js',
78 ], 86 ],
87 'remoting_webapp_unittest_js_mock_files': [
88 # Some proto files can be repurposed as simple mocks for the unittests.
89 # Note that some defs in chrome_proto are overwritten by chrome_mocks.
90 'webapp/js_proto/chrome_proto.js',
91 'webapp/unittests/chrome_mocks.js',
92 'webapp/unittests/mock_signal_strategy.js',
93 'webapp/unittests/sinon_helpers.js',
94 'webapp/unittests/test_start.js',
95 ],
96 # Prototypes for objects that are not mocked.
97 'remoting_webapp_unittest_js_proto_files': [
98 'webapp/js_proto/chrome_cast_proto.js',
99 'webapp/js_proto/dom_proto.js',
100 'webapp/js_proto/remoting_proto.js',
101 'webapp/js_proto/qunit_proto.js',
102 'webapp/js_proto/sinon_proto.js',
103 'webapp/js_proto/sinon_stub_proto.js',
104 ],
79 'remoting_webapp_unittest_all_js_files': [ 105 'remoting_webapp_unittest_all_js_files': [
80 '<@(remoting_webapp_unittest_js_files)', 106 '<@(remoting_webapp_unittest_js_files)',
81 '<@(remoting_webapp_test_js_common_files)', 107 '<@(remoting_webapp_unittest_js_mock_files)',
82 ], 108 ],
109 # All the files needed to run the unittests.
83 'remoting_webapp_unittest_all_files': [ 110 'remoting_webapp_unittest_all_files': [
84 'webapp/crd/html/menu_button.css', 111 'webapp/crd/html/menu_button.css',
85 '<@(remoting_webapp_unittest_all_js_files)', 112 '<@(remoting_webapp_unittest_all_js_files)',
86 ], 113 ],
87 'remoting_webapp_unittest_template_main': 114 'remoting_webapp_unittest_template_main':
88 'webapp/crd/html/template_unittest.html', 115 'webapp/crd/html/template_unittest.html',
89 116
90 # 117 #
91 # Webapp JavaScript file groups. 118 # Webapp JavaScript file groups.
92 # 119 #
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 'webapp/crd/manifest.json.jinja2', 420 'webapp/crd/manifest.json.jinja2',
394 '<(remoting_webapp_template_main)', 421 '<(remoting_webapp_template_main)',
395 '<(remoting_webapp_template_wcs_sandbox)', 422 '<(remoting_webapp_template_wcs_sandbox)',
396 '<(remoting_webapp_template_background)', 423 '<(remoting_webapp_template_background)',
397 '<@(remoting_webapp_template_files)', 424 '<@(remoting_webapp_template_files)',
398 '<@(remoting_webapp_crd_js_files)', 425 '<@(remoting_webapp_crd_js_files)',
399 ], 426 ],
400 427
401 }, 428 },
402 } 429 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698