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

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

Issue 10545181: Optimizes loading initial printer on non-chromeos platforms. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Add bug reference to TODOs. Created 8 years, 6 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/resources/print_preview/search/destination_search.js ('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 2158e1142bd93f19972e7640d9d3f9ca590064dc..f9cc287a2ebb26ddeecef80470a9136b82730281 100644
--- a/chrome/test/data/webui/print_preview.js
+++ b/chrome/test/data/webui/print_preview.js
@@ -250,6 +250,7 @@ TEST_F('PrintPreviewWebUITest', 'TestSectionsDisabled', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': true,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -287,6 +288,7 @@ TEST_F('PrintPreviewWebUITest',
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -315,6 +317,7 @@ TEST_F('PrintPreviewWebUITest', 'SourceIsHTMLHideFitToPageOption', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -346,6 +349,7 @@ TEST_F('PrintPreviewWebUITest', 'SourceIsPDFShowFitToPageOption', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -380,6 +384,7 @@ TEST_F('PrintPreviewWebUITest', 'PrintScalingDisabledForPlugin', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -417,6 +422,7 @@ TEST_F('PrintPreviewWebUITest',
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -456,6 +462,7 @@ TEST_F('PrintPreviewWebUITest',
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -495,6 +502,7 @@ TEST_F('PrintPreviewWebUITest',
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -535,6 +543,7 @@ TEST_F('PrintPreviewWebUITest',
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -574,6 +583,7 @@ TEST_F('PrintPreviewWebUITest', 'TestColorSettings', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -594,6 +604,7 @@ TEST_F('PrintPreviewWebUITest', 'TestColorSettings', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': false,
'disableCopiesOption': false,
@@ -640,6 +651,7 @@ TEST_F('PrintPreviewWebUITest', 'TestDuplexSettings', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': false,
@@ -657,6 +669,7 @@ TEST_F('PrintPreviewWebUITest', 'TestDuplexSettings', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': false,
'disableCopiesOption': false,
@@ -671,6 +684,7 @@ TEST_F('PrintPreviewWebUITest', 'TestDuplexSettings', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': false,
'disableCopiesOption': false,
@@ -700,6 +714,7 @@ TEST_F('PrintPreviewWebUITest', 'TestPrinterChangeUpdatesPreview', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'FooDevice',
'disableColorOption': false,
'setColorAsDefault': true,
'disableCopiesOption': true,
@@ -726,6 +741,7 @@ TEST_F('PrintPreviewWebUITest', 'TestPrinterChangeUpdatesPreview', function() {
var capsSetEvent =
new cr.Event(print_preview.NativeLayer.EventType.CAPABILITIES_SET);
capsSetEvent.settingsInfo = {
+ 'printerId': 'BarDevice',
'disableColorOption': true,
'setColorAsDefault': false,
'disableCopiesOption': true,
« no previous file with comments | « chrome/browser/resources/print_preview/search/destination_search.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698