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

Unified Diff: chrome/browser/ui/webui/options/chromeos/accounts_options_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.js
diff --git a/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.js b/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.js
deleted file mode 100644
index 381aead5130fa40c12ad31420869693068c4e6b8..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/webui/options/chromeos/accounts_options_browsertest.js
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-GEN_INCLUDE(['../options_browsertest_base.js']);
-
-function AccountsOptionsWebUITest() {}
-
-AccountsOptionsWebUITest.prototype = {
- __proto__: OptionsBrowsertestBase.prototype,
-
- /**
- * Browse to accounts options.
- */
- browsePreload: 'chrome://settings-frame/accounts',
-};
-
-function createEnterKeyboardEvent(type) {
- return new KeyboardEvent(type, {
- 'bubbles': true,
- 'cancelable': true,
- 'key': 'Enter'
- });
-}
-
-TEST_F('AccountsOptionsWebUITest', 'testNoCloseOnEnter', function() {
- assertEquals(this.browsePreload, document.location.href);
-
- var inputField = $('userNameEdit');
- var accountsOptionsPage = AccountsOptions.getInstance();
-
- // Overlay is visible.
- assertTrue(accountsOptionsPage.visible);
-
- // Simulate pressing the enter key in the edit field.
- inputField.dispatchEvent(createEnterKeyboardEvent('keydown'));
- inputField.dispatchEvent(createEnterKeyboardEvent('keypress'));
- inputField.dispatchEvent(createEnterKeyboardEvent('keyup'));
-
- // Verify the overlay is still visible.
- assertTrue(accountsOptionsPage.visible);
-});

Powered by Google App Engine
This is Rietveld 408576698