| OLD | NEW | 
|   1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |   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 |   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  * Test fixture for loading all our JS files. |   6  * Test fixture for loading all our JS files. | 
|   7  * @constructor |   7  * @constructor | 
|   8  * @extends {testing.Test} |   8  * @extends {testing.Test} | 
|   9  */ |   9  */ | 
|  10 function AllJsLoadTest () { |  10 function AllJsLoadTest () { | 
|  11 } |  11 } | 
|  12  |  12  | 
|  13 AllJsLoadTest.prototype = { |  13 AllJsLoadTest.prototype = { | 
|  14   __proto__: testing.Test.prototype, |  14   __proto__: testing.Test.prototype, | 
|  15  |  15  | 
|  16   /** @inheritDoc */ |  16   /** @inheritDoc */ | 
|  17   extraLibraries: [ |  17   extraLibraries: [ | 
|  18     'browser_globals.gtestjs', |  18     'browser_globals.gtestjs', | 
|  19     // All of our Javascript files should be listed here unless they are |  19     // All of our Javascript files should be listed here unless they are | 
|  20     // only used by JSCompiler |  20     // only used by JSCompiler | 
|  21     'client_plugin.js', |  21     'client_plugin.js', | 
|  22     'client_screen.js', |  22     'client_screen.js', | 
|  23     'client_session.js', |  23     'client_session.js', | 
|  24     //'clipboard_event_proto.js',  // Only used by jscompiler. |  24     //'clipboard_event_proto.js',  // Only used by jscompiler. | 
|  25     'clipboard.js', |  25     'clipboard.js', | 
 |  26     'connection_history.js', | 
|  26     'connection_stats.js', |  27     'connection_stats.js', | 
|  27     //'cs_oauth2_trampoline.js', // Uses globals in the chrome namespace, which |  28     //'cs_oauth2_trampoline.js', // Uses globals in the chrome namespace, which | 
|  28                                  // give a compilation error when declared in |  29                                  // give a compilation error when declared in | 
|  29                                  // browser_globals for some reason. Since this |  30                                  // browser_globals for some reason. Since this | 
|  30                                  // file's days are numbered, skip it for now. |  31                                  // file's days are numbered, skip it for now. | 
|  31     'error.js', |  32     'error.js', | 
|  32     'event_handlers.js', |  33     'event_handlers.js', | 
|  33     'butter_bar.js', |  34     'butter_bar.js', | 
|  34     //'format_iq.js',  // Already covered by format_iq.gtestjs |  35     //'format_iq.js',  // Already covered by format_iq.gtestjs | 
|  35     'host.js', |  36     'host.js', | 
| (...skipping 29 matching lines...) Expand all  Loading... | 
|  65     'wcs_sandbox_container.js', |  66     'wcs_sandbox_container.js', | 
|  66     'xhr.js', |  67     'xhr.js', | 
|  67     'xhr_proxy.js', |  68     'xhr_proxy.js', | 
|  68   ], |  69   ], | 
|  69 }; |  70 }; | 
|  70  |  71  | 
|  71 // Basic test to verify that all the JS files load without console errors. |  72 // Basic test to verify that all the JS files load without console errors. | 
|  72 TEST_F('AllJsLoadTest', 'TestNoConsoleErrors', function() { |  73 TEST_F('AllJsLoadTest', 'TestNoConsoleErrors', function() { | 
|  73   assertTrue(true); |  74   assertTrue(true); | 
|  74 }); |  75 }); | 
| OLD | NEW |