Index: third_party/WebKit/Source/platform/fonts/FontTest.cpp |
diff --git a/third_party/WebKit/Source/platform/fonts/FontTest.cpp b/third_party/WebKit/Source/platform/fonts/FontTest.cpp |
index 29a0f58d7b27cf66a0170e165d6e8d6883c7cacb..ef08fa418370a87828cabd124efa76e90405f07f 100644 |
--- a/third_party/WebKit/Source/platform/fonts/FontTest.cpp |
+++ b/third_party/WebKit/Source/platform/fonts/FontTest.cpp |
@@ -13,13 +13,9 @@ using blink::testing::createTestFont; |
namespace blink { |
-static inline String fontPath(String relativePath) { |
- return testing::blinkRootDir() + "/Source/platform/testing/data/" + |
- relativePath; |
-} |
- |
TEST(FontTest, TextIntercepts) { |
- Font font = createTestFont("Ahem", fontPath("Ahem.woff"), 16); |
+ Font font = |
+ createTestFont("Ahem", testing::platformTestDataPath("Ahem.woff"), 16); |
// A sequence of LATIN CAPITAL LETTER E WITH ACUTE and LATIN SMALL LETTER P |
// characters. E ACUTES are squares above the baseline in Ahem, while p's |
// are rectangles below the baseline. |