// Copyright (c) 2012 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 browser options WebUI testing.
 * @extends {testing.Test}
 * @constructor
 **/
function BrowserOptionsWebUITest() {}

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

  /**
   * Browse to browser options.
   **/
  browsePreload: 'chrome://chrome/settings/',
};

// Test opening the browser options has correct location.
TEST_F('BrowserOptionsWebUITest', 'testOpenBrowserOptions', function() {
  assertEquals(this.browsePreload, document.location.href);
});

// Copyright (c) 2012 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 browser options WebUI testing.
 * @extends {testing.Test}
 * @constructor
 **/
function BrowserOptionsWebUITest() {}

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

  /**
   * Browse to browser options.
   **/
  browsePreload: 'chrome://chrome/settings/',
};

// Test opening the browser options has correct location.
// Times out on Mac debug only. See http://crbug.com/121030
GEN('#if defined(OS_MACOSX) && !defined(NDEBUG)');
GEN('#define MAYBE_testOpenBrowserOptions ' +
    'DISABLED_testOpenBrowserOptions');
GEN('#else');
GEN('#define MAYBE_testOpenBrowserOptions testOpenBrowserOptions');
GEN('#endif  // defined(OS_MACOSX)');
TEST_F('BrowserOptionsWebUITest', 'MAYBE_testOpenBrowserOptions', function() {
  assertEquals(this.browsePreload, document.location.href);
});

Disable BrowserOptionsWebUITest.testOpenBrowserOptions on Mac debug bots.
Disable BrowserOptionsWebUITest.testOpenBrowserOptions on Mac debug bots.

It times out, since it's at the 45 second completion threshold.

BUG=121030
TBR=estade@chromium.org

Review URL: https://chromiumcodereview.appspot.com/9933007

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