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

Unified Diff: chrome/renderer/printing/print_web_view_helper_browsertest.cc

Issue 568933002: Normalize a couple of print preview browser tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3c777bd6058c7ece1ad6e5ed035e7a6c601b8961..ba5cc2625cea70a1435440efb02c0d5c68877743 100644
--- a/chrome/renderer/printing/print_web_view_helper_browsertest.cc
+++ b/chrome/renderer/printing/print_web_view_helper_browsertest.cc
@@ -335,6 +335,7 @@ TEST_F(PrintWebViewHelperTest, PrintWithIframe) {
" document.write(frames['sub1'].name);"
" frames['sub1'].document.write("
" '<p>Cras tempus ante eu felis semper luctus!</p>');"
+ " frames['sub1'].document.close();"
"</script></body></html>";
LoadHTML(html);
@@ -563,6 +564,7 @@ class PrintWebViewHelperPreviewTest : public PrintWebViewHelperTestBase {
#if defined(ENABLE_FULL_PRINTING)
TEST_F(PrintWebViewHelperPreviewTest, BlockScriptInitiatedPrinting) {
+ LoadHTML(kHelloWorldHTML);
PrintWebViewHelper* print_web_view_helper = PrintWebViewHelper::Get(view_);
print_web_view_helper->SetScriptedPrintBlocked(true);
PrintWithJavaScript();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698