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); |
-}); |