| OLD | NEW |
| 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 GEN_INCLUDE(['options_browsertest_base.js']); | 5 GEN_INCLUDE(['options_browsertest_base.js']); |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * TestFixture for cookies view WebUI testing. | 8 * TestFixture for cookies view WebUI testing. |
| 9 * @extends {testing.Test} | 9 * @extends {testing.Test} |
| 10 * @constructor | 10 * @constructor |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 assertEquals(this.browsePreload, document.location.href); | 47 assertEquals(this.browsePreload, document.location.href); |
| 48 }); | 48 }); |
| 49 | 49 |
| 50 TEST_F('CookiesViewWebUITest', 'testNoCloseOnSearchEnter', function() { | 50 TEST_F('CookiesViewWebUITest', 'testNoCloseOnSearchEnter', function() { |
| 51 var cookiesView = CookiesView.getInstance(); | 51 var cookiesView = CookiesView.getInstance(); |
| 52 assertTrue(cookiesView.visible); | 52 assertTrue(cookiesView.visible); |
| 53 var searchBox = cookiesView.pageDiv.querySelector('.cookies-search-box'); | 53 var searchBox = cookiesView.pageDiv.querySelector('.cookies-search-box'); |
| 54 searchBox.dispatchEvent(new KeyboardEvent('keydown', { | 54 searchBox.dispatchEvent(new KeyboardEvent('keydown', { |
| 55 'bubbles': true, | 55 'bubbles': true, |
| 56 'cancelable': true, | 56 'cancelable': true, |
| 57 'keyIdentifier': 'Enter' | 57 'key': 'Enter' |
| 58 })); | 58 })); |
| 59 assertTrue(cookiesView.visible); | 59 assertTrue(cookiesView.visible); |
| 60 }); | 60 }); |
| OLD | NEW |