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

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

Issue 2905393002: MD Settings: URL encode text queries before adding them to the URL. (Closed)
Patch Set: Nit. 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
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);
dschuyler 2017/05/27 01:32:13 wdyt of asserting that the internal value of searc
dpapad 2017/05/27 01:39:34 That would not be correct (the internal value DOES
dschuyler 2017/05/27 01:44:18 Acknowledged.
+ assertEquals(value, settings.getQueryParameters().get('search'));
dpapad 2017/05/27 00:18:10 I verified that this test would have caught the pr
});
test('whitespace only search query is ignored', function() {

Powered by Google App Engine
This is Rietveld 408576698