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

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

Issue 646853004: Enable a11y audit for chrome://settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Apply Feedback pt2 Created 6 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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(['chrome/browser/ui/webui/options/options_browsertest_base.js']);
6
5 function AccountsOptionsWebUITest() {} 7 function AccountsOptionsWebUITest() {}
6 8
7 AccountsOptionsWebUITest.prototype = { 9 AccountsOptionsWebUITest.prototype = {
8 __proto__: testing.Test.prototype, 10 __proto__: OptionsBrowsertestBase.prototype,
9 11
10 /** 12 /**
11 * Browse to accounts options. 13 * Browse to accounts options.
12 */ 14 */
13 browsePreload: 'chrome://settings-frame/accounts', 15 browsePreload: 'chrome://settings-frame/accounts',
14 }; 16 };
15 17
16 function createEnterKeyboardEvent(type) { 18 function createEnterKeyboardEvent(type) {
17 return new KeyboardEvent(type, { 19 return new KeyboardEvent(type, {
18 'bubbles': true, 20 'bubbles': true,
(...skipping 12 matching lines...) Expand all
31 assertTrue(accountsOptionsPage.visible); 33 assertTrue(accountsOptionsPage.visible);
32 34
33 // Simulate pressing the enter key in the edit field. 35 // Simulate pressing the enter key in the edit field.
34 inputField.dispatchEvent(createEnterKeyboardEvent('keydown')); 36 inputField.dispatchEvent(createEnterKeyboardEvent('keydown'));
35 inputField.dispatchEvent(createEnterKeyboardEvent('keypress')); 37 inputField.dispatchEvent(createEnterKeyboardEvent('keypress'));
36 inputField.dispatchEvent(createEnterKeyboardEvent('keyup')); 38 inputField.dispatchEvent(createEnterKeyboardEvent('keyup'));
37 39
38 // Verify the overlay is still visible. 40 // Verify the overlay is still visible.
39 assertTrue(accountsOptionsPage.visible); 41 assertTrue(accountsOptionsPage.visible);
40 }); 42 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698