Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(133)

Side by Side Diff: chrome/test/data/webui/print_preview.js

Issue 1809213002: Remove hidePrintWithSystemDialog disableability (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/print_preview/print_preview_handler.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698