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 'base.js', |
18 'browser_globals.gtestjs', | 19 'browser_globals.gtestjs', |
19 // All of our Javascript files should be listed here unless they are | 20 // All of our Javascript files should be listed here unless they are |
20 // only used by JSCompiler | 21 // only used by JSCompiler |
21 'client_plugin.js', | 22 'client_plugin.js', |
22 'client_screen.js', | 23 'client_screen.js', |
23 'client_session.js', | 24 'client_session.js', |
24 //'clipboard_event_proto.js', // Only used by jscompiler. | 25 //'clipboard_event_proto.js', // Only used by jscompiler. |
25 'clipboard.js', | 26 'clipboard.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 |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 'wcs_sandbox_container.js', | 68 'wcs_sandbox_container.js', |
68 'xhr.js', | 69 'xhr.js', |
69 'xhr_proxy.js', | 70 'xhr_proxy.js', |
70 ], | 71 ], |
71 }; | 72 }; |
72 | 73 |
73 // Basic test to verify that all the JS files load without console errors. | 74 // Basic test to verify that all the JS files load without console errors. |
74 TEST_F('AllJsLoadTest', 'TestNoConsoleErrors', function() { | 75 TEST_F('AllJsLoadTest', 'TestNoConsoleErrors', function() { |
75 assertTrue(true); | 76 assertTrue(true); |
76 }); | 77 }); |
OLD | NEW |