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_async.js', | |
22 'client_plugin.js', | 21 'client_plugin.js', |
23 'client_screen.js', | 22 'client_screen.js', |
24 'client_session.js', | 23 'client_session.js', |
25 //'clipboard_event_proto.js', // Only used by jscompiler. | 24 //'clipboard_event_proto.js', // Only used by jscompiler. |
26 'clipboard.js', | 25 'clipboard.js', |
27 'connection_history.js', | 26 'connection_history.js', |
28 'connection_stats.js', | 27 'connection_stats.js', |
29 //'cs_oauth2_trampoline.js', // Uses globals in the chrome namespace, which | 28 //'cs_oauth2_trampoline.js', // Uses globals in the chrome namespace, which |
30 // give a compilation error when declared in | 29 // give a compilation error when declared in |
31 // browser_globals for some reason. Since this | 30 // browser_globals for some reason. Since this |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 'wcs_sandbox_container.js', | 66 'wcs_sandbox_container.js', |
68 'xhr.js', | 67 'xhr.js', |
69 'xhr_proxy.js', | 68 'xhr_proxy.js', |
70 ], | 69 ], |
71 }; | 70 }; |
72 | 71 |
73 // 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. |
74 TEST_F('AllJsLoadTest', 'TestNoConsoleErrors', function() { | 73 TEST_F('AllJsLoadTest', 'TestNoConsoleErrors', function() { |
75 assertTrue(true); | 74 assertTrue(true); |
76 }); | 75 }); |
OLD | NEW |