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

Unified Diff: components/printing/test/print_web_view_helper_browsertest.cc

Issue 1123783002: Add ExecuteJavaScriptForTest and make all tests use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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
Index: components/printing/test/print_web_view_helper_browsertest.cc
diff --git a/components/printing/test/print_web_view_helper_browsertest.cc b/components/printing/test/print_web_view_helper_browsertest.cc
index 28d25231ff507568f9cf9a11ec2bc8bf258abbd5..c1eb5847f6450a4c3953a85a12fc2e9b8dc768ef 100644
--- a/components/printing/test/print_web_view_helper_browsertest.cc
+++ b/components/printing/test/print_web_view_helper_browsertest.cc
@@ -153,7 +153,7 @@ class PrintWebViewHelperTestBase : public content::RenderViewTest {
}
void PrintWithJavaScript() {
- ExecuteJavaScript("window.print();");
+ ExecuteJavaScriptForTests("window.print();");
ProcessPendingMessages();
}
// The renderer should be done calculating the number of rendered pages

Powered by Google App Engine
This is Rietveld 408576698