diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 15:41:01 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-18 15:41:01 +0000 |
commit | 8c2990ccf93794012497fe2a03291392abf400e0 (patch) | |
tree | 504c52f1901b32ee209ae0c5ae996feca4d40c32 /chrome/renderer | |
parent | 38249475041ab3a1ca68b08670b07335c26c94d7 (diff) | |
download | chromium_src-8c2990ccf93794012497fe2a03291392abf400e0.zip chromium_src-8c2990ccf93794012497fe2a03291392abf400e0.tar.gz chromium_src-8c2990ccf93794012497fe2a03291392abf400e0.tar.bz2 |
Add superficial unit test for PrintJob. That's a start.
Add more DCHECKs.
Review URL: http://codereview.chromium.org/10957
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5607 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_view.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/chrome/renderer/render_view.cc b/chrome/renderer/render_view.cc index 3c041cb..6095e28 100644 --- a/chrome/renderer/render_view.cc +++ b/chrome/renderer/render_view.cc @@ -453,6 +453,7 @@ int RenderView::SwitchFrameToPrintMediaType(const ViewMsg_Print_Params& params, NOTREACHED(); pages = 0; } else { + DCHECK_GT(printed_document_width_, 0); // Force to recalculate the height, otherwise it reuse the current window // height as the default. float effective_shrink = printed_document_width_ / paper_width; |