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

Unified Diff: content/browser/webui/web_ui_browsertest.cc

Issue 6805003: Add a test for checking that refreshing a page does load the same WebUI page. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 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: content/browser/webui/web_ui_browsertest.cc
===================================================================
--- content/browser/webui/web_ui_browsertest.cc (revision 80324)
+++ content/browser/webui/web_ui_browsertest.cc (working copy)
@@ -19,7 +19,7 @@
WebUIBrowserTest::~WebUIBrowserTest() {}
bool WebUIBrowserTest::RunJavascriptFunction(const std::string& function_name) {
- return RunJavascriptUsingHandler(function_name, false);
+ return RunJavascriptUsingHandler(function_name, true);
}
bool WebUIBrowserTest::RunJavascriptTest(const std::string& test_name) {
@@ -68,7 +68,7 @@
if (!function_name.empty()) {
std::string called_function = is_test ? "runTest(" + function_name + ");" :
- function_name + "()";
+ function_name + "();";
content.append(called_function);
}
SetupHandlers();

Powered by Google App Engine
This is Rietveld 408576698