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

Unified Diff: chrome/test/data/webui/settings/settings_ui_browsertest.js

Issue 2921653003: M60: MD Settings: URL encode text queries before adding them to the URL. (Closed)
Patch Set: Created 3 years, 7 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/browser/resources/settings/settings_ui/settings_ui.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/webui/settings/settings_ui_browsertest.js
diff --git a/chrome/test/data/webui/settings/settings_ui_browsertest.js b/chrome/test/data/webui/settings/settings_ui_browsertest.js
index be2201cb87dab76d4ef0c615591ed035a5421980..22813ab62c665a95b9d5fa9e7ea9e74e7af104f6 100644
--- a/chrome/test/data/webui/settings/settings_ui_browsertest.js
+++ b/chrome/test/data/webui/settings/settings_ui_browsertest.js
@@ -133,6 +133,11 @@ TEST_F('SettingsUIBrowserTest', 'DISABLED_All', function() {
var value = 'GOOG';
searchField.setValue(value);
assertEquals(value, settings.getQueryParameters().get('search'));
+
+ // Test that search queries are properly URL encoded.
+ value = '+++';
+ searchField.setValue(value);
+ assertEquals(value, settings.getQueryParameters().get('search'));
});
test('whitespace only search query is ignored', function() {
« no previous file with comments | « chrome/browser/resources/settings/settings_ui/settings_ui.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698