// 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. #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/ui/browser.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/pref_names.h" IN_PROC_BROWSER_TEST_F(ExtensionApiTest, FontSettings) { CommandLine::ForCurrentProcess()->AppendSwitch( switches::kEnableExperimentalExtensionApis); PrefService* prefs = browser()->profile()->GetPrefs(); prefs->SetString(prefs::kWebKitStandardFontFamilyKorean, "UnBatang"); prefs->SetString(prefs::kWebKitGlobalSansSerifFontFamily, "Arial"); EXPECT_TRUE(RunExtensionTest("font_settings")) << message_; }