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

Unified Diff: chrome/browser/ui/webui/edit_search_engine_dialog_webui.cc

Issue 8676008: Add automated test for the edit search engine dialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update to new test API. Created 9 years, 1 month 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/ui/webui/edit_search_engine_dialog_webui.cc
diff --git a/chrome/browser/ui/webui/edit_search_engine_dialog_webui.cc b/chrome/browser/ui/webui/edit_search_engine_dialog_webui.cc
index 7c61a438a7013b7850e68f5addeb6bfc97df1f2c..75af9106a097d807bfa64e99a805ce08e43d22e3 100644
--- a/chrome/browser/ui/webui/edit_search_engine_dialog_webui.cc
+++ b/chrome/browser/ui/webui/edit_search_engine_dialog_webui.cc
@@ -19,9 +19,9 @@
#include "chrome/browser/ui/search_engines/edit_search_engine_controller.h"
#include "chrome/browser/ui/webui/theme_source.h"
#include "chrome/common/url_constants.h"
-#include "grit/ui_resources.h"
-#include "grit/theme_resources.h"
#include "grit/generated_resources.h"
+#include "grit/theme_resources.h"
+#include "grit/ui_resources.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
@@ -155,11 +155,11 @@ void EditSearchEngineDialogHandlerWebUI::RequestValidation(
bool isDescriptionValid = controller_->IsTitleValid(description_str);
bool isKeywordValid = controller_->IsKeywordValid(keyword_str);
bool isUrlValid = controller_->IsURLValid(url_str);
- validation.SetBoolean("description", isDescriptionValid );
- validation.SetBoolean("keyword", isKeywordValid );
- validation.SetBoolean("url", isUrlValid );
+ validation.SetBoolean("description", isDescriptionValid);
+ validation.SetBoolean("keyword", isKeywordValid);
+ validation.SetBoolean("url", isUrlValid);
validation.SetBoolean("ok", isDescriptionValid && isKeywordValid &&
- isUrlValid );
+ isUrlValid);
web_ui_->CallJavascriptFunction("editSearchEngineDialog.setValidation",
validation);
}

Powered by Google App Engine
This is Rietveld 408576698