• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (c) 2012 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5/**
6 * Test fixture for loading all our JS files.
7 * @constructor
8 * @extends {testing.Test}
9 */
10function AllJsLoadTest () {
11}
12
13AllJsLoadTest.prototype = {
14  __proto__: testing.Test.prototype,
15
16  /** @inheritDoc */
17  extraLibraries: [
18    'browser_globals.gtestjs',
19    // All of our Javascript files should be listed here unless they are
20    // only used by JSCompiler
21    'client_plugin_async.js',
22    'client_plugin.js',
23    'client_screen.js',
24    'client_session.js',
25    //'clipboard_event_proto.js',  // Only used by jscompiler.
26    'clipboard.js',
27    'connection_history.js',
28    'connection_stats.js',
29    //'cs_oauth2_trampoline.js', // Uses globals in the chrome namespace, which
30                                 // give a compilation error when declared in
31                                 // browser_globals for some reason. Since this
32                                 // file's days are numbered, skip it for now.
33    'error.js',
34    'event_handlers.js',
35    'butter_bar.js',
36    //'format_iq.js',  // Already covered by format_iq.gtestjs
37    'host.js',
38    'host_controller.js',
39    'host_dispatcher.js',
40    'host_list.js',
41    'host_native_messaging.js',
42    //'host_plugin_proto.js',  // Only used by jscompiler
43    'host_screen.js',
44    'host_session.js',
45    'host_setup_dialog.js',
46    'host_table_entry.js',
47    'identity.js',
48    //'jscompiler_hacks.js',  // Only used by jscompiler.
49    'l10n.js',
50    'log_to_server.js',
51    'menu_button.js',
52    'oauth2_api.js',
53    'oauth2.js',
54    'paired_client_manager.js',
55    'plugin_settings.js',
56    'remoting.js',
57    'session_connector.js',
58    'server_log_entry.js',
59    'stats_accumulator.js',
60    'toolbar.js',
61    'ui_mode.js',
62    //'viewer_plugin_proto.js',  // Only used by jscompiler.
63    //'wcs_iq_client_proto.js',  // Only used by jscompiler.
64    'wcs.js',
65    'wcs_loader.js',
66    'wcs_sandbox_content.js',
67    'wcs_sandbox_container.js',
68    'xhr.js',
69    'xhr_proxy.js',
70  ],
71};
72
73// Basic test to verify that all the JS files load without console errors.
74TEST_F('AllJsLoadTest', 'TestNoConsoleErrors', function() {
75  assertTrue(true);
76});
77