Index: chrome/renderer/printing/print_web_view_helper_browsertest.cc |
diff --git a/chrome/renderer/printing/print_web_view_helper_browsertest.cc b/chrome/renderer/printing/print_web_view_helper_browsertest.cc |
index 93fc332dc174f9c343763c81aa3b9b050ab4282c..e7325cb979f519cce1cd3322ad5ef3cf3e4a48f5 100644 |
--- a/chrome/renderer/printing/print_web_view_helper_browsertest.cc |
+++ b/chrome/renderer/printing/print_web_view_helper_browsertest.cc |
@@ -51,7 +51,7 @@ const char kHTMLWithPageSizeCss[] = |
" }" |
"}" |
"</style></head>" |
- "<body>Lorem Ipsum:" |
+ "<body>Lorem Ipsum:<p>" |
"</body></html>"; |
// A simple web page with print page layout css. |
@@ -669,7 +669,7 @@ TEST_F(PrintWebViewHelperPreviewTest, PrintPreviewCenterToFitPage) { |
OnPrintPreview(dict); |
EXPECT_EQ(0, chrome_render_thread_->print_preview_pages_remaining()); |
- VerifyDefaultPageLayout(288, 288, 252, 252, 162, 162, true); |
+ VerifyDefaultPageLayout(216, 216, 288, 288, 198, 198, true); |
VerifyPrintPreviewCancelled(false); |
VerifyPrintPreviewFailed(false); |
VerifyPrintPreviewGenerated(true); |
@@ -687,7 +687,7 @@ TEST_F(PrintWebViewHelperPreviewTest, PrintPreviewShrinkToFitPage) { |
" }" |
"}" |
"</style></head>" |
- "<body>Lorem Ipsum:" |
+ "<body>Lorem Ipsum:<p>" |
"</body></html>"; |
LoadHTML(kHTMLWithPageCss); |
@@ -699,7 +699,7 @@ TEST_F(PrintWebViewHelperPreviewTest, PrintPreviewShrinkToFitPage) { |
OnPrintPreview(dict); |
EXPECT_EQ(0, chrome_render_thread_->print_preview_pages_remaining()); |
- VerifyDefaultPageLayout(612, 693, 49, 50, 0, 0, true); |
+ VerifyDefaultPageLayout(571, 652, 69, 71, 20, 21, true); |
VerifyPrintPreviewCancelled(false); |
VerifyPrintPreviewFailed(false); |
} |