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

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
« no previous file with comments | « chrome/test/data/webui/test_api.js ('k') | content/browser/webui/web_ui_test_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/webui/web_ui_browsertest.cc
===================================================================
--- content/browser/webui/web_ui_browsertest.cc (revision 82016)
+++ content/browser/webui/web_ui_browsertest.cc (working copy)
@@ -26,15 +26,19 @@
int line,
size_t message_start,
const std::string& str) {
- if (severity == logging::LOG_ERROR)
+ if (severity == logging::LOG_ERROR) {
error_messages_.push_back(str);
- return true;
+ return true;
+ } else {
+ // For debugging messages while developing tests.
+ return false;
+ }
}
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) {
« no previous file with comments | « chrome/test/data/webui/test_api.js ('k') | content/browser/webui/web_ui_test_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698