summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-04 00:20:16 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-04 00:20:16 +0000
commit7b9a0ea99e69b4207956c08355b36deb9d7e1026 (patch)
treecf6bbe5189620cb6c3085aa07ab41797c0eb6e89 /webkit
parent98b5bcbd5136888ee6a6d63b5e2d69c85865a86a (diff)
downloadchromium_src-7b9a0ea99e69b4207956c08355b36deb9d7e1026.zip
chromium_src-7b9a0ea99e69b4207956c08355b36deb9d7e1026.tar.gz
chromium_src-7b9a0ea99e69b4207956c08355b36deb9d7e1026.tar.bz2
linux: test_shell adjustments for lucid
A font moved directories on Lucid, so support loading the font from either of those directories. Review URL: http://codereview.chromium.org/1830003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46300 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/test_shell_gtk.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/webkit/tools/test_shell/test_shell_gtk.cc b/webkit/tools/test_shell/test_shell_gtk.cc
index abc6c5f..10ebf22 100644
--- a/webkit/tools/test_shell/test_shell_gtk.cc
+++ b/webkit/tools/test_shell/test_shell_gtk.cc
@@ -227,10 +227,9 @@ void TestShell::InitializeTestShell(bool layout_test_mode,
"/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold.ttf",
"/usr/share/fonts/truetype/msttcorefonts/Verdana_Bold_Italic.ttf",
"/usr/share/fonts/truetype/msttcorefonts/Verdana_Italic.ttf",
- // The DejaVuSans font is used by the LayoutTests/css2.1 tests
+ // The DejaVuSans font is used by the css2.1 tests.
"/usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf",
"/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_ta.ttf",
- "/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_pa.ttf",
"/usr/share/fonts/truetype/ttf-indic-fonts-core/MuktiNarrow.ttf",
};
for (size_t i = 0; i < arraysize(fonts); ++i) {
@@ -248,14 +247,18 @@ void TestShell::InitializeTestShell(bool layout_test_mode,
// few layout tests.
static const char* const optional_fonts[] = {
"/usr/share/fonts/truetype/ttf-lucida/LucidaSansRegular.ttf",
+
+ // This font changed paths across Ubuntu releases.
+ "/usr/share/fonts/truetype/ttf-indic-fonts-core/lohit_pa.ttf",
+ "/usr/share/fonts/truetype/ttf-punjabi-fonts/lohit_pa.ttf",
};
for (size_t i = 0; i < arraysize(optional_fonts); ++i) {
const char* font = optional_fonts[i];
if (access(font, R_OK) < 0) {
LOG(WARNING) << "You are missing " << font << ". "
<< "Without this, some layout tests will fail. "
- << "To get LucidaSansRegular, install sun-java6-fonts. "
- << "FYI, this will also install a somewhat hefty JRE :)";
+ << "See http://code.google.com/p/chromium/wiki/"
+ << "LinuxBuildInstructionsPrerequisites for more.";
} else {
if (!FcConfigAppFontAddFile(fontcfg, (FcChar8 *) font))
LOG(FATAL) << "Failed to load font " << font;