diff options
author | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-29 21:32:55 +0000 |
---|---|---|
committer | mark@chromium.org <mark@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-29 21:32:55 +0000 |
commit | 0709309fe4242bd8bfe170684ea7fa9568a584ee (patch) | |
tree | 7d3deb7713e38df31b1a52922f8c6e3ab1d078ac /chrome/browser/tab_contents/web_contents_unittest.cc | |
parent | e4dad5bd72ddd563b84eede80cf2b414ea688b2c (diff) | |
download | chromium_src-0709309fe4242bd8bfe170684ea7fa9568a584ee.zip chromium_src-0709309fe4242bd8bfe170684ea7fa9568a584ee.tar.gz chromium_src-0709309fe4242bd8bfe170684ea7fa9568a584ee.tar.bz2 |
Use Mac fonts in Mac Chrome.
Use Helvetica, Times, Courier, Apple Chancery, and Papyrus for sans-serif,
serif, monospace, cursive, and fantasy, respectively. These are the fonts
used by Safari and Firefox on the Mac, and the fonts that we run layout tests
with on the Mac.
BUG=19135 21458
TEST=http://www.w3.org/Style/Examples/007/fonts
Check the fonts for sans-serif, serif, monospace, cursive, fantasy
Note that the font used for "Helvetica, sans-serif" is actually Verdana
Review URL: http://codereview.chromium.org/244039
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27533 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/web_contents_unittest.cc')
-rw-r--r-- | chrome/browser/tab_contents/web_contents_unittest.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/browser/tab_contents/web_contents_unittest.cc b/chrome/browser/tab_contents/web_contents_unittest.cc index ef1de03..a1af7b1 100644 --- a/chrome/browser/tab_contents/web_contents_unittest.cc +++ b/chrome/browser/tab_contents/web_contents_unittest.cc @@ -583,7 +583,12 @@ TEST_F(TabContentsTest, WebKitPrefs) { EXPECT_EQ(true, webkit_prefs.uses_universal_detector); // These should still be the default values. - EXPECT_EQ(L"Times New Roman", webkit_prefs.standard_font_family); +#if defined(OS_MACOSX) + const wchar_t kDefaultFont[] = L"Times"; +#else + const wchar_t kDefaultFont[] = L"Times New Roman"; +#endif + EXPECT_EQ(kDefaultFont, webkit_prefs.standard_font_family); EXPECT_EQ(true, webkit_prefs.javascript_enabled); } |