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

Unified Diff: chrome/test/data/webui/print_preview.js

Issue 387073002: Print preview changes for App Kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix PrintPreviewWebUITest.* Created 6 years, 5 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/print_preview.js
diff --git a/chrome/test/data/webui/print_preview.js b/chrome/test/data/webui/print_preview.js
index a86cf205acc933a6f6ed7bc59439665bcb2cdd6f..c7175e27e998281cb2fab4bf991826c600b0b65f 100644
--- a/chrome/test/data/webui/print_preview.js
+++ b/chrome/test/data/webui/print_preview.js
@@ -115,6 +115,7 @@ PrintPreviewWebUITest.prototype = {
this.initialSettings_ = new print_preview.NativeInitialSettings(
false /*isInKioskAutoPrintMode*/,
+ false /*isInAppKioskMode*/,
false /*hidePrintWithSystemDialogLink*/,
',' /*thousandsDelimeter*/,
'.' /*decimalDelimeter*/,
@@ -475,9 +476,8 @@ TEST_F('PrintPreviewWebUITest', 'CustomMarginsControlsCheck', function() {
});
// Page layout has zero margins. Hide header and footer option.
-TEST_F('PrintPreviewWebUITest',
- 'PageLayoutHasNoMarginsHideHeaderFooter',
- function() {
+TEST_F('PrintPreviewWebUITest', 'PageLayoutHasNoMarginsHideHeaderFooter',
+ function() {
var initialSettingsSetEvent =
new Event(print_preview.NativeLayer.EventType.INITIAL_SETTINGS_SET);
initialSettingsSetEvent.initialSettings = this.initialSettings_;
@@ -508,9 +508,8 @@ TEST_F('PrintPreviewWebUITest',
});
// Page layout has half-inch margins. Show header and footer option.
-TEST_F('PrintPreviewWebUITest',
- 'PageLayoutHasMarginsShowHeaderFooter',
- function() {
+TEST_F('PrintPreviewWebUITest', 'PageLayoutHasMarginsShowHeaderFooter',
+ function() {
var initialSettingsSetEvent =
new Event(print_preview.NativeLayer.EventType.INITIAL_SETTINGS_SET);
initialSettingsSetEvent.initialSettings = this.initialSettings_;
@@ -649,12 +648,12 @@ TEST_F('PrintPreviewWebUITest', 'TestColorSettingsColor', function() {
this.setUpPreview();
var capsSetEvent =
- new Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
+ new Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = getCddTemplate("FooDevice");
capsSetEvent.settingsInfo.capabilities.printer.color = {
- "option": [
- {"is_default": true, "type": "STANDARD_COLOR"}
- ]
+ "option": [
+ {"is_default": true, "type": "STANDARD_COLOR"}
+ ]
};
this.nativeLayer_.dispatchEvent(capsSetEvent);
@@ -669,9 +668,9 @@ TEST_F('PrintPreviewWebUITest', 'TestColorSettingsCustomColor', function() {
new Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = getCddTemplate("FooDevice");
capsSetEvent.settingsInfo.capabilities.printer.color = {
- "option": [
- {"is_default": true, "type": "CUSTOM_COLOR", "vendor_id": "42"}
- ]
+ "option": [
+ {"is_default": true, "type": "CUSTOM_COLOR", "vendor_id": "42"}
+ ]
};
this.nativeLayer_.dispatchEvent(capsSetEvent);
@@ -709,10 +708,10 @@ TEST_F('PrintPreviewWebUITest',
new Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = getCddTemplate("FooDevice");
capsSetEvent.settingsInfo.capabilities.printer.color = {
- "option": [
- {"is_default": true, "type": "STANDARD_MONOCHROME"},
- {"type": "STANDARD_COLOR"}
- ]
+ "option": [
+ {"is_default": true, "type": "STANDARD_MONOCHROME"},
+ {"type": "STANDARD_COLOR"}
+ ]
};
this.nativeLayer_.dispatchEvent(capsSetEvent);
@@ -727,13 +726,13 @@ TEST_F('PrintPreviewWebUITest',
this.setUpPreview();
var capsSetEvent =
- new Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
+ new Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = getCddTemplate("FooDevice");
capsSetEvent.settingsInfo.capabilities.printer.color = {
- "option": [
- {"type": "CUSTOM_MONOCHROME", "vendor_id": "42"},
- {"is_default": true, "type": "CUSTOM_COLOR", "vendor_id": "43"}
- ]
+ "option": [
+ {"type": "CUSTOM_MONOCHROME", "vendor_id": "42"},
+ {"is_default": true, "type": "CUSTOM_COLOR", "vendor_id": "43"}
+ ]
};
this.nativeLayer_.dispatchEvent(capsSetEvent);
« 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