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 print preview WebUI testing. | 6 * Test fixture for print preview WebUI testing. |
7 * @constructor | 7 * @constructor |
8 * @extends {testing.Test} | 8 * @extends {testing.Test} |
9 */ | 9 */ |
10 function PrintPreviewWebUITest() { | 10 function PrintPreviewWebUITest() { |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
165 * @this {PrintPreviewWebUITest} | 165 * @this {PrintPreviewWebUITest} |
166 * @override | 166 * @override |
167 */ | 167 */ |
168 setUp: function() { | 168 setUp: function() { |
169 testing.Test.prototype.setUp.call(this); | 169 testing.Test.prototype.setUp.call(this); |
170 Mock4JS.clearMocksToVerify(); | 170 Mock4JS.clearMocksToVerify(); |
171 | 171 |
172 this.initialSettings_ = new print_preview.NativeInitialSettings( | 172 this.initialSettings_ = new print_preview.NativeInitialSettings( |
173 false /*isInKioskAutoPrintMode*/, | 173 false /*isInKioskAutoPrintMode*/, |
174 false /*isInAppKioskMode*/, | 174 false /*isInAppKioskMode*/, |
175 false /*hidePrintWithSystemDialogLink*/, | |
176 ',' /*thousandsDelimeter*/, | 175 ',' /*thousandsDelimeter*/, |
177 '.' /*decimalDelimeter*/, | 176 '.' /*decimalDelimeter*/, |
178 1 /*unitType*/, | 177 1 /*unitType*/, |
179 true /*isDocumentModifiable*/, | 178 true /*isDocumentModifiable*/, |
180 'title' /*documentTitle*/, | 179 'title' /*documentTitle*/, |
181 true /*documentHasSelection*/, | 180 true /*documentHasSelection*/, |
182 false /*selectionOnly*/, | 181 false /*selectionOnly*/, |
183 'FooDevice' /*systemDefaultDestinationId*/, | 182 'FooDevice' /*systemDefaultDestinationId*/, |
184 null /*serializedAppStateStr*/, | 183 null /*serializedAppStateStr*/, |
185 null /*serializedDefaultDestinationSelectionRulesStr*/); | 184 null /*serializedDefaultDestinationSelectionRulesStr*/); |
(...skipping 765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
951 expectEquals( | 950 expectEquals( |
952 customLocalizedMediaName, | 951 customLocalizedMediaName, |
953 mediaSelect.options[mediaSelect.selectedIndex].text); | 952 mediaSelect.options[mediaSelect.selectedIndex].text); |
954 // Check the other media item. | 953 // Check the other media item. |
955 expectEquals( | 954 expectEquals( |
956 customMediaName, | 955 customMediaName, |
957 mediaSelect.options[mediaSelect.selectedIndex == 0 ? 1 : 0].text); | 956 mediaSelect.options[mediaSelect.selectedIndex == 0 ? 1 : 0].text); |
958 | 957 |
959 this.waitForAnimationToEnd('more-settings'); | 958 this.waitForAnimationToEnd('more-settings'); |
960 }); | 959 }); |
OLD | NEW |