// Copyright (c) 2011 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.

/**
 * TestFixture for search engine manager WebUI testing.
 * @extends {testing.Test}
 * @constructor
 **/
function SearchEngineManagerWebUITest() {}

SearchEngineManagerWebUITest.prototype = {
  __proto__: testing.Test.prototype,

  /**
   * Browse to the search engine manager.
   **/
  browsePreload: 'chrome://settings/searchEngines',
};

// Test opening the search engine manager has correct location.
TEST_F('SearchEngineManagerWebUITest', 'testOpenSearchEngineManager',
       function() {
         assertEquals(this.browsePreload, document.location.href);
       });

// Copyright (c) 2011 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.

/**
 * TestFixture for search engine manager WebUI testing.
 * @extends {testing.Test}
 * @constructor
 **/
function SearchEngineManagerWebUITest() {}

SearchEngineManagerWebUITest.prototype = {
  __proto__: testing.Test.prototype,

  /**
   * Browse to the search engine manager.
   **/
  browsePreload: 'chrome://settings/searchEngines',
};

// See crosbug.com/22673
GEN('#if defined(OS_CHROMEOS)');
GEN('#define MAYBE_testOpenSearchEngineManager ' +
        'DISABLED_testOpenSearchEngineManager');
GEN('#else');
GEN('#define MAYBE_testOpenSearchEngineManager testOpenSearchEngineManager');
GEN('#endif  // defined(OS_CHROMEOS)');

// Test opening the search engine manager has correct location.
TEST_F('SearchEngineManagerWebUITest', 'MAYBE_testOpenSearchEngineManager',
       function() {
         assertEquals(this.browsePreload, document.location.href);
       });

Mark SearchEngineManagerWebUITest.testOpenSearchEngineManager as flaky. SearchEngineManagerWebUITest.testOpenSearchEngineManager fails when run on a ChromeOS VM for the first time, all subsequent runs pass. Marking it as flaky.
Mark SearchEngineManagerWebUITest.testOpenSearchEngineManager as flaky.
SearchEngineManagerWebUITest.testOpenSearchEngineManager fails when run on a ChromeOS VM for the first time, all subsequent runs pass. Marking it as flaky.

See crosbug.com/22673


BUG=chromium-os:22673
TEST=Confirmed that the test doesn't cause a fail on ChromeOS VM's.


Review URL: http://codereview.chromium.org/8495025

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@110468 0039d316-1c4b-4281-b951-d872f2087c98
