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

Side by Side Diff: chrome/browser/ui/webui/options/cookies_view_browsertest.js

Issue 2059913002: Remove keyIdentifier usage in chrome/browser/resources/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix chromeos build Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 GEN_INCLUDE(['options_browsertest_base.js']); 5 GEN_INCLUDE(['options_browsertest_base.js']);
6 6
7 /** 7 /**
8 * TestFixture for cookies view WebUI testing. 8 * TestFixture for cookies view WebUI testing.
9 * @extends {testing.Test} 9 * @extends {testing.Test}
10 * @constructor 10 * @constructor
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 assertEquals(this.browsePreload, document.location.href); 47 assertEquals(this.browsePreload, document.location.href);
48 }); 48 });
49 49
50 TEST_F('CookiesViewWebUITest', 'testNoCloseOnSearchEnter', function() { 50 TEST_F('CookiesViewWebUITest', 'testNoCloseOnSearchEnter', function() {
51 var cookiesView = CookiesView.getInstance(); 51 var cookiesView = CookiesView.getInstance();
52 assertTrue(cookiesView.visible); 52 assertTrue(cookiesView.visible);
53 var searchBox = cookiesView.pageDiv.querySelector('.cookies-search-box'); 53 var searchBox = cookiesView.pageDiv.querySelector('.cookies-search-box');
54 searchBox.dispatchEvent(new KeyboardEvent('keydown', { 54 searchBox.dispatchEvent(new KeyboardEvent('keydown', {
55 'bubbles': true, 55 'bubbles': true,
56 'cancelable': true, 56 'cancelable': true,
57 'keyIdentifier': 'Enter' 57 'key': 'Enter'
58 })); 58 }));
59 assertTrue(cookiesView.visible); 59 assertTrue(cookiesView.visible);
60 }); 60 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698