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

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

Issue 2919343005: Remove tests for deprecated Options UI (Closed)
Patch Set: and more Created 3 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
(Empty)
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
3 // found in the LICENSE file.
4
5 GEN_INCLUDE(['options_browsertest_base.js']);
6
7 /**
8 * TestFixture for cookies view WebUI testing.
9 * @extends {testing.Test}
10 * @constructor
11 */
12 function CookiesViewWebUITest() {}
13
14 CookiesViewWebUITest.prototype = {
15 __proto__: OptionsBrowsertestBase.prototype,
16
17 /**
18 * Browse to the cookies view.
19 */
20 browsePreload: 'chrome://settings-frame/cookies',
21
22 /** @override */
23 setUp: function() {
24 OptionsBrowsertestBase.prototype.setUp.call(this);
25
26 // Enable when failure is resolved.
27 // AX_TEXT_01: http://crbug.com/570560
28 this.accessibilityAuditConfig.ignoreSelectors(
29 'controlsWithoutLabel',
30 '#cookies-view-page > .content-area.cookies-list-content-area > *');
31
32 var requiredOwnedAriaRoleMissingSelectors = [
33 '#default-search-engine-list',
34 '#other-search-engine-list',
35 ];
36
37 // Enable when failure is resolved.
38 // AX_ARIA_08: http://crbug.com/605689
39 this.accessibilityAuditConfig.ignoreSelectors(
40 'requiredOwnedAriaRoleMissing',
41 requiredOwnedAriaRoleMissingSelectors);
42 },
43 };
44
45 // Test opening the cookies view has correct location.
46 TEST_F('CookiesViewWebUITest', 'testOpenCookiesView', function() {
47 assertEquals(this.browsePreload, document.location.href);
48 });
49
50 TEST_F('CookiesViewWebUITest', 'testNoCloseOnSearchEnter', function() {
51 var cookiesView = CookiesView.getInstance();
52 assertTrue(cookiesView.visible);
53 var searchBox = cookiesView.pageDiv.querySelector('.cookies-search-box');
54 searchBox.dispatchEvent(new KeyboardEvent('keydown', {
55 'bubbles': true,
56 'cancelable': true,
57 'key': 'Enter'
58 }));
59 assertTrue(cookiesView.visible);
60 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698