Home | History | Annotate | Download | only in webapp
      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  */
     10 function AllJsLoadTest () {
     11 }
     12 
     13 AllJsLoadTest.prototype = {
     14   __proto__: testing.Test.prototype,
     15 
     16   /** @inheritDoc */
     17   extraLibraries: [
     18     'base.js',
     19     'browser_globals.gtestjs',
     20     // All of our Javascript files should be listed here unless they are
     21     // only used by JSCompiler
     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_stats.js',
     28     //'cs_oauth2_trampoline.js', // Uses globals in the chrome namespace, which
     29                                  // give a compilation error when declared in
     30                                  // browser_globals for some reason. Since this
     31                                  // file's days are numbered, skip it for now.
     32     'error.js',
     33     'event_handlers.js',
     34     'butter_bar.js',
     35     //'format_iq.js',  // Already covered by format_iq.gtestjs
     36     'host.js',
     37     'host_controller.js',
     38     'host_dispatcher.js',
     39     'host_it2me_dispatcher.js',
     40     'host_it2me_native_messaging.js',
     41     'host_list.js',
     42     'host_native_messaging.js',
     43     //'host_plugin_proto.js',  // Only used by jscompiler
     44     'host_screen.js',
     45     'host_session.js',
     46     'host_setup_dialog.js',
     47     'host_table_entry.js',
     48     'identity.js',
     49     //'jscompiler_hacks.js',  // Only used by jscompiler.
     50     'l10n.js',
     51     'log_to_server.js',
     52     'menu_button.js',
     53     'oauth2_api.js',
     54     'oauth2.js',
     55     'paired_client_manager.js',
     56     'plugin_settings.js',
     57     'remoting.js',
     58     'session_connector.js',
     59     'server_log_entry.js',
     60     'smart_reconnector.js',
     61     'stats_accumulator.js',
     62     'toolbar.js',
     63     'ui_mode.js',
     64     //'viewer_plugin_proto.js',  // Only used by jscompiler.
     65     //'wcs_iq_client_proto.js',  // Only used by jscompiler.
     66     'wcs.js',
     67     'wcs_loader.js',
     68     'wcs_sandbox_content.js',
     69     'wcs_sandbox_container.js',
     70     'xhr.js',
     71     'xhr_proxy.js',
     72   ],
     73 };
     74 
     75 // Basic test to verify that all the JS files load without console errors.
     76 TEST_F('AllJsLoadTest', 'TestNoConsoleErrors', function() {
     77   assertTrue(true);
     78 });
     79