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

Unified Diff: content/test/layout_browsertest.cc

Issue 10827182: Rename layoutTestController to testRunner. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 8 years, 4 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 | « content/shell/shell_messages.h ('k') | webkit/glue/webkit_glue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/layout_browsertest.cc
diff --git a/content/test/layout_browsertest.cc b/content/test/layout_browsertest.cc
index e6607f7bc3c41562fe13ed139f95dac6e16e3714..b0fac406abd02ff24baf3e7d8b555c8297f92730 100644
--- a/content/test/layout_browsertest.cc
+++ b/content/test/layout_browsertest.cc
@@ -67,7 +67,7 @@ void ScrapeResultFromBrowser(content::Shell* window, std::string* actual_text) {
static const std::string preamble =
"\n<script>\n"
- "function LayoutTestController() {\n"
+ "function TestRunner() {\n"
" this.wait_until_done_ = false;\n"
" this.dumpAsText = function () {};\n"
" this.waitUntilDone = function () {\n"
@@ -78,14 +78,13 @@ static const std::string preamble =
" }\n"
" this.overridePreference = function () {}\n"
" this.OnEvent = function () {\n"
- " if (!layoutTestController.wait_until_done_)\n"
- " layoutTestController.notifyDone();\n"
+ " if (!testRunner.wait_until_done_)\n"
+ " testRunner.notifyDone();\n"
" }\n"
" this.workerThreadCount = 0; \n"
"}\n"
- "window.layoutTestController = new LayoutTestController();\n"
- "window.testRunner = window.layoutTestController;\n"
- "window.addEventListener('load', layoutTestController.OnEvent, false);\n"
+ "window.testRunner = new TestRunner();\n"
+ "window.addEventListener('load', testRunner.OnEvent, false);\n"
"</script>";
}
« no previous file with comments | « content/shell/shell_messages.h ('k') | webkit/glue/webkit_glue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698