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

Unified Diff: chrome/browser/ui/webui/options/cookies_view_browsertest.js

Issue 22298002: Don't close cookies view on search enter. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years, 4 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/options/cookies_view.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/cookies_view_browsertest.js
diff --git a/chrome/browser/ui/webui/options/cookies_view_browsertest.js b/chrome/browser/ui/webui/options/cookies_view_browsertest.js
index 06727cf0e233c04d64de1701cc7eafdc46258352..7a646e9a70600d5acf464e5e6fa2041a9fa54fa8 100644
--- a/chrome/browser/ui/webui/options/cookies_view_browsertest.js
+++ b/chrome/browser/ui/webui/options/cookies_view_browsertest.js
@@ -22,3 +22,15 @@ CookiesViewWebUITest.prototype = {
TEST_F('CookiesViewWebUITest', 'DISABLED_testOpenCookiesView', function() {
assertEquals(this.browsePreload, document.location.href);
});
+
+TEST_F('CookiesViewWebUITest', 'testNoCloseOnSearchEnter', function() {
+ var cookiesView = CookiesView.getInstance();
+ assertTrue(cookiesView.visible);
+ var searchBox = cookiesView.pageDiv.querySelector('.cookies-search-box');
+ searchBox.dispatchEvent(new KeyboardEvent('keydown', {
+ 'bubbles': true,
+ 'cancelable': true,
+ 'keyIdentifier': 'Enter'
+ }));
+ assertTrue(cookiesView.visible);
+});
« no previous file with comments | « chrome/browser/resources/options/cookies_view.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698