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

Unified Diff: chrome/test/gpu/gpu_pixel_browsertest.cc

Issue 11753009: Simplify ExecuteJavaScript* functions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update prerender_browsertest.cc. Created 7 years, 12 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 | « chrome/test/base/ui_test_utils.cc ('k') | content/browser/bookmarklet_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/gpu/gpu_pixel_browsertest.cc
diff --git a/chrome/test/gpu/gpu_pixel_browsertest.cc b/chrome/test/gpu/gpu_pixel_browsertest.cc
index 8b7eb5506ff56af2daf955f451d9e9a94b1983b3..21de04f5f07df3fd3a75803e52be61e07313abb0 100644
--- a/chrome/test/gpu/gpu_pixel_browsertest.cc
+++ b/chrome/test/gpu/gpu_pixel_browsertest.cc
@@ -183,10 +183,8 @@ class GpuPixelBrowserTest : public InProcessBrowserTest {
js_call << new_bounds.width() << ", " << new_bounds.height();
js_call << ");";
- ASSERT_TRUE(content::ExecuteJavaScript(
- chrome::GetActiveWebContents(browser())->GetRenderViewHost(),
- "",
- js_call.str()));
+ ASSERT_TRUE(content::ExecuteScript(
+ chrome::GetActiveWebContents(browser()), js_call.str()));
std::string message;
ASSERT_TRUE(message_queue.WaitForMessage(&message));
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | content/browser/bookmarklet_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698