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

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

Issue 8351048: Print Preview: Making margin selection sticky (part 2/2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit Created 9 years, 1 month 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/renderer/print_web_view_helper.cc ('k') | printing/page_size_margins.h » ('j') | 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 596e8f012acc76e2e2f6b5031a614eb8d2107219..530211e3c3f1675557747e0d55da281fed81717f 100644
--- a/chrome/test/data/webui/print_preview.js
+++ b/chrome/test/data/webui/print_preview.js
@@ -26,7 +26,7 @@ PrintPreviewWebUITest.prototype = {
* @override
*/
preLoad: function() {
- this.makeAndRegisterMockHandler(['getDefaultPrinter',
+ this.makeAndRegisterMockHandler(['getInitialSettings',
'getPrinters',
'getPreview',
'print',
@@ -45,7 +45,7 @@ PrintPreviewWebUITest.prototype = {
// Register stubs for methods expected to be called before tests
// run. Specific expectations can be made in the tests themselves.
- this.mockHandler.stubs().getDefaultPrinter().
+ this.mockHandler.stubs().getInitialSettings().
will(callFunction(function() {
setDefaultPrinter('FooDevice');
}));
« no previous file with comments | « chrome/renderer/print_web_view_helper.cc ('k') | printing/page_size_margins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698