OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 var ROOT_PATH = '../../../../../'; | 5 var ROOT_PATH = '../../../../../'; |
6 | 6 |
7 GEN_INCLUDE( | 7 GEN_INCLUDE( |
8 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']); | 8 [ROOT_PATH + 'chrome/test/data/webui/polymer_browser_test_base.js']); |
9 | 9 |
10 /** | 10 /** |
11 * Test fixture for DestinationSearch of Print Preview. | 11 * Test fixture for DestinationSearch of Print Preview. |
12 * @constructor | 12 * @constructor |
13 * @extends {PolymerTest} | 13 * @extends {PolymerTest} |
14 */ | 14 */ |
15 function PrintPreviewDestinationSearchTest() {} | 15 function PrintPreviewDestinationSearchTest() {} |
16 | 16 |
17 PrintPreviewDestinationSearchTest.prototype = { | 17 PrintPreviewDestinationSearchTest.prototype = { |
18 __proto__: PolymerTest.prototype, | 18 __proto__: PolymerTest.prototype, |
19 | 19 |
20 /** @override */ | 20 /** @override */ |
21 browsePreload: 'chrome://print', | 21 browsePreload: 'chrome://print', |
22 | 22 |
23 /** @override */ | 23 /** @override */ |
24 runAccessibilityChecks: false, | 24 runAccessibilityChecks: false, |
25 | 25 |
26 /** @override */ | 26 /** @override */ |
27 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ | 27 extraLibraries: PolymerTest.getLibraries(ROOT_PATH).concat([ |
28 ROOT_PATH + 'chrome/test/data/webui/settings/test_browser_proxy.js', | 28 ROOT_PATH + 'chrome/test/data/webui/test_browser_proxy.js', |
29 'native_layer_stub.js', | 29 'native_layer_stub.js', |
30 ]), | 30 ]), |
31 | 31 |
32 }; | 32 }; |
33 | 33 |
34 TEST_F('PrintPreviewDestinationSearchTest', 'Select', function() { | 34 TEST_F('PrintPreviewDestinationSearchTest', 'Select', function() { |
35 var self = this; | 35 var self = this; |
36 | 36 |
37 suite('DestinationSearchTest', function() { | 37 suite('DestinationSearchTest', function() { |
38 var root_; | 38 var root_; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 // Simulate a click. | 262 // Simulate a click. |
263 dest.onActivate_(); | 263 dest.onActivate_(); |
264 | 264 |
265 // Verify that the destination has been selected. | 265 // Verify that the destination has been selected. |
266 assertEquals(printerId, destinationStore_.selectedDestination.id); | 266 assertEquals(printerId, destinationStore_.selectedDestination.id); |
267 }); | 267 }); |
268 }); | 268 }); |
269 | 269 |
270 mocha.run(); | 270 mocha.run(); |
271 }); | 271 }); |
OLD | NEW |