Vectorize sad tab image.
[chromium-blink-merge.git] / chrome / browser / ui / webui / options / cookies_view_browsertest.js
blob1babc6d7373d2049d150070765053e45a73172d6
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.
5 /**
6 * TestFixture for cookies view WebUI testing.
7 * @extends {testing.Test}
8 * @constructor
9 */
10 function CookiesViewWebUITest() {}
12 CookiesViewWebUITest.prototype = {
13 __proto__: testing.Test.prototype,
15 /**
16 * Browse to the cookies view.
18 browsePreload: 'chrome://settings-frame/cookies',
21 // Test opening the cookies view has correct location.
22 TEST_F('CookiesViewWebUITest', 'DISABLED_testOpenCookiesView', function() {
23 assertEquals(this.browsePreload, document.location.href);
24 });
26 TEST_F('CookiesViewWebUITest', 'testNoCloseOnSearchEnter', function() {
27 var cookiesView = CookiesView.getInstance();
28 assertTrue(cookiesView.visible);
29 var searchBox = cookiesView.pageDiv.querySelector('.cookies-search-box');
30 searchBox.dispatchEvent(new KeyboardEvent('keydown', {
31 'bubbles': true,
32 'cancelable': true,
33 'keyIdentifier': 'Enter'
34 }));
35 assertTrue(cookiesView.visible);
36 });