| 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', | |
| 27 'connection_stats.js', | 26 'connection_stats.js', |
| 28 //'cs_oauth2_trampoline.js', // Uses globals in the chrome namespace, which | 27 //'cs_oauth2_trampoline.js', // Uses globals in the chrome namespace, which |
| 29 // give a compilation error when declared in | 28 // give a compilation error when declared in |
| 30 // browser_globals for some reason. Since this | 29 // browser_globals for some reason. Since this |
| 31 // file's days are numbered, skip it for now. | 30 // file's days are numbered, skip it for now. |
| 32 'error.js', | 31 'error.js', |
| 33 'event_handlers.js', | 32 'event_handlers.js', |
| 34 'butter_bar.js', | 33 'butter_bar.js', |
| 35 //'format_iq.js', // Already covered by format_iq.gtestjs | 34 //'format_iq.js', // Already covered by format_iq.gtestjs |
| 36 'host.js', | 35 'host.js', |
| (...skipping 29 matching lines...) Expand all Loading... |
| 66 'wcs_sandbox_container.js', | 65 'wcs_sandbox_container.js', |
| 67 'xhr.js', | 66 'xhr.js', |
| 68 'xhr_proxy.js', | 67 'xhr_proxy.js', |
| 69 ], | 68 ], |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 // Basic test to verify that all the JS files load without console errors. | 71 // Basic test to verify that all the JS files load without console errors. |
| 73 TEST_F('AllJsLoadTest', 'TestNoConsoleErrors', function() { | 72 TEST_F('AllJsLoadTest', 'TestNoConsoleErrors', function() { |
| 74 assertTrue(true); | 73 assertTrue(true); |
| 75 }); | 74 }); |
| OLD | NEW |