| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "base/files/file_util.h" | 5 #include "base/files/file_util.h" |
| 6 #include "base/path_service.h" | 6 #include "base/path_service.h" |
| 7 #include "base/prefs/pref_service.h" | 7 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/common/chrome_constants.h" | 10 #include "chrome/common/chrome_constants.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 IN_PROC_BROWSER_TEST_F(PrefsTabHelperBrowserTest, WebPrefs) { | 62 IN_PROC_BROWSER_TEST_F(PrefsTabHelperBrowserTest, WebPrefs) { |
| 63 PrefService* prefs = browser()->profile()->GetPrefs(); | 63 PrefService* prefs = browser()->profile()->GetPrefs(); |
| 64 | 64 |
| 65 EXPECT_TRUE(prefs->FindPreference( | 65 EXPECT_TRUE(prefs->FindPreference( |
| 66 prefs::kWebKitCursiveFontFamily)->IsDefaultValue()); | 66 prefs::kWebKitCursiveFontFamily)->IsDefaultValue()); |
| 67 EXPECT_TRUE(prefs->FindPreference( | 67 EXPECT_TRUE(prefs->FindPreference( |
| 68 prefs::kWebKitSerifFontFamily)->IsDefaultValue()); | 68 prefs::kWebKitSerifFontFamily)->IsDefaultValue()); |
| 69 EXPECT_TRUE(prefs->FindPreference( | 69 EXPECT_TRUE(prefs->FindPreference( |
| 70 prefs::kWebKitSerifFontFamilyJapanese)->IsDefaultValue()); | 70 prefs::kWebKitSerifFontFamilyJapanese)->IsDefaultValue()); |
| 71 | 71 |
| 72 EXPECT_EQ("ISO-8859-1", prefs->GetString(prefs::kDefaultCharset)); | 72 EXPECT_EQ("windows-1251", prefs->GetString(prefs::kDefaultCharset)); |
| 73 EXPECT_EQ(16, prefs->GetInteger(prefs::kWebKitDefaultFontSize)); | 73 EXPECT_EQ(16, prefs->GetInteger(prefs::kWebKitDefaultFontSize)); |
| 74 EXPECT_EQ("Nanum Gothic", | 74 EXPECT_EQ("Nanum Gothic", |
| 75 prefs->GetString(prefs::kWebKitStandardFontFamilyKorean)); | 75 prefs->GetString(prefs::kWebKitStandardFontFamilyKorean)); |
| 76 EXPECT_EQ("Tinos", prefs->GetString(prefs::kWebKitStandardFontFamily)); | 76 EXPECT_EQ("Tinos", prefs->GetString(prefs::kWebKitStandardFontFamily)); |
| 77 EXPECT_EQ("DejaVu Sans", prefs->GetString(prefs::kWebKitSansSerifFontFamily)); | 77 EXPECT_EQ("DejaVu Sans", prefs->GetString(prefs::kWebKitSansSerifFontFamily)); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 | 80 |
| OLD | NEW |