Popular sites on the NTP: check that experiment group StartsWith (rather than IS...
[chromium-blink-merge.git] / chrome / browser / ui / webui / options / search_engine_manager_browsertest.js
blob9e9a1a2354589f312ced7316d0a82202ba42cce6
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 search engine manager WebUI testing.
7  * @extends {testing.Test}
8  * @constructor
9  */
10 function SearchEngineManagerWebUITest() {}
12 SearchEngineManagerWebUITest.prototype = {
13   __proto__: testing.Test.prototype,
15   /**
16    * Browse to the search engine manager.
17    */
18   browsePreload: 'chrome://settings-frame/searchEngines',
21 // See crosbug.com/22673
22 GEN('#if defined(OS_CHROMEOS)');
23 GEN('#define MAYBE_testOpenSearchEngineManager ' +
24         'DISABLED_testOpenSearchEngineManager');
25 GEN('#else');
26 GEN('#define MAYBE_testOpenSearchEngineManager testOpenSearchEngineManager');
27 GEN('#endif  // defined(OS_CHROMEOS)');
29 // Test opening the search engine manager has correct location.
30 TEST_F('SearchEngineManagerWebUITest', 'MAYBE_testOpenSearchEngineManager',
31        function() {
32          assertEquals(this.browsePreload, document.location.href);
33        });