Logo Search packages:      
Sourcecode: chromium-browser version File versions  Download package


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

#include "chrome/browser/extensions/extension_apitest.h"

#include "chrome/browser/browser.h"
#include "chrome/browser/pref_service.h"
#include "chrome/browser/profile.h"
#include "chrome/common/pref_names.h"

// TODO(skerner): This test is flaky on chrome os: http://crbug.com/39843
#if defined(OS_LINUX) && defined(TOOLKIT_VIEWS)
#define MAYBE_Tabs DISABLED_Tabs
#define MAYBE_Tabs Tabs

IN_PROC_BROWSER_TEST_F(ExtensionApiTest, MAYBE_Tabs) {

  // The test creates a tab and checks that the URL of the new tab
  // is that of the new tab page.  Make sure the pref that controls
  // this is set.
      prefs::kHomePageIsNewTabPage, true);

  ASSERT_TRUE(RunExtensionTest("tabs/basics")) << message_;

IN_PROC_BROWSER_TEST_F(ExtensionApiTest, CaptureVisibleTab) {

  ASSERT_TRUE(RunExtensionTest("tabs/capture_visible_tab")) << message_;

Generated by  Doxygen 1.6.0   Back to index