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

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

Issue 255503006: webui: remove the precendent for silly, invalid end of jsdoc comments, e.g. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: whoops Created 6 years, 8 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 | Annotate | Revision Log
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 /** 5 /**
6 * TestFixture for cookies view WebUI testing. 6 * TestFixture for cookies view WebUI testing.
7 * @extends {testing.Test} 7 * @extends {testing.Test}
8 * @constructor 8 * @constructor
9 **/ 9 */
10 function CookiesViewWebUITest() {} 10 function CookiesViewWebUITest() {}
11 11
12 CookiesViewWebUITest.prototype = { 12 CookiesViewWebUITest.prototype = {
13 __proto__: testing.Test.prototype, 13 __proto__: testing.Test.prototype,
14 14
15 /** 15 /**
16 * Browse to the cookies view. 16 * Browse to the cookies view.
17 **/ 17 */
18 browsePreload: 'chrome://settings-frame/cookies', 18 browsePreload: 'chrome://settings-frame/cookies',
19 }; 19 };
20 20
21 // Test opening the cookies view has correct location. 21 // Test opening the cookies view has correct location.
22 TEST_F('CookiesViewWebUITest', 'DISABLED_testOpenCookiesView', function() { 22 TEST_F('CookiesViewWebUITest', 'DISABLED_testOpenCookiesView', function() {
23 assertEquals(this.browsePreload, document.location.href); 23 assertEquals(this.browsePreload, document.location.href);
24 }); 24 });
25 25
26 TEST_F('CookiesViewWebUITest', 'testNoCloseOnSearchEnter', function() { 26 TEST_F('CookiesViewWebUITest', 'testNoCloseOnSearchEnter', function() {
27 var cookiesView = CookiesView.getInstance(); 27 var cookiesView = CookiesView.getInstance();
28 assertTrue(cookiesView.visible); 28 assertTrue(cookiesView.visible);
29 var searchBox = cookiesView.pageDiv.querySelector('.cookies-search-box'); 29 var searchBox = cookiesView.pageDiv.querySelector('.cookies-search-box');
30 searchBox.dispatchEvent(new KeyboardEvent('keydown', { 30 searchBox.dispatchEvent(new KeyboardEvent('keydown', {
31 'bubbles': true, 31 'bubbles': true,
32 'cancelable': true, 32 'cancelable': true,
33 'keyIdentifier': 'Enter' 33 'keyIdentifier': 'Enter'
34 })); 34 }));
35 assertTrue(cookiesView.visible); 35 assertTrue(cookiesView.visible);
36 }); 36 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698