| Index: tests/SerializationTest.cpp
|
| diff --git a/tests/SerializationTest.cpp b/tests/SerializationTest.cpp
|
| index f6a8a7d5fc48d0b06f63fff33f512bb4c1630146..f7e298305f86fc5741b7d07422485785c95dbbe1 100644
|
| --- a/tests/SerializationTest.cpp
|
| +++ b/tests/SerializationTest.cpp
|
| @@ -317,14 +317,8 @@ static void compare_bitmaps(skiatest::Reporter* reporter,
|
| }
|
|
|
| static void TestPictureTypefaceSerialization(skiatest::Reporter* reporter) {
|
| - // Load typeface form file.
|
| - // This test cannot run if there is no resource path.
|
| - SkString resourcePath = GetResourcePath();
|
| - if (resourcePath.isEmpty()) {
|
| - SkDebugf("Could not run fontstream test because resourcePath not specified.");
|
| - return;
|
| - }
|
| - SkString filename = SkOSPath::Join(resourcePath.c_str(), "test.ttc");
|
| + // Load typeface form file to test CreateFromFile with index.
|
| + SkString filename = GetResourcePath("/fonts/test.ttc");
|
| SkTypeface* typeface = SkTypeface::CreateFromFile(filename.c_str(), 1);
|
| if (!typeface) {
|
| SkDebugf("Could not run fontstream test because test.ttc not found.");
|
|
|