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

Unified Diff: chrome/browser/task_manager/task_manager_browsertest.cc

Issue 1257603003: Revert of Add ExecuteJavaScriptForTest and make all tests use it (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: chrome/browser/task_manager/task_manager_browsertest.cc
diff --git a/chrome/browser/task_manager/task_manager_browsertest.cc b/chrome/browser/task_manager/task_manager_browsertest.cc
index 3c27c4743c0c06d82c4c245947a450330d02cb4d..5d13c532a6f1c08af84ae2eb7eca42ca61b43106 100644
--- a/chrome/browser/task_manager/task_manager_browsertest.cc
+++ b/chrome/browser/task_manager/task_manager_browsertest.cc
@@ -257,8 +257,7 @@
tab1->GetMainFrame()->ExecuteJavaScriptWithUserGestureForTests(
base::ASCIIToUTF16("window.open('title3.html', '_blank');"));
// ... then immediately hang the renderer so that title3.html can't load.
- tab1->GetMainFrame()->ExecuteJavaScriptForTests(
- base::ASCIIToUTF16("while(1);"));
+ tab1->GetMainFrame()->ExecuteJavaScript(base::ASCIIToUTF16("while(1);"));
// Blocks until a new WebContents appears.
WebContents* tab2 = web_contents_added_observer.GetWebContents();

Powered by Google App Engine
This is Rietveld 408576698