Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(28)

Side by Side Diff: chrome/browser/ui/prefs/prefs_tab_helper_browsertest.cc

Issue 643993004: Prepare for ISO-8859-1 to windows-1252 switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/download/save_page_browsertest.cc ('k') | chrome/test/data/profiles/web_prefs/Default/Preferences » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698