Index: gm/gm_expectations.cpp |
=================================================================== |
--- gm/gm_expectations.cpp (revision 9067) |
+++ gm/gm_expectations.cpp (working copy) |
@@ -141,8 +141,7 @@ |
// IndividualImageExpectationsSource class... |
Expectations IndividualImageExpectationsSource::get(const char *testName) { |
- SkString path = make_filename(fRootDir.c_str(), "", testName, |
- "png"); |
+ SkString path = make_filename(fRootDir.c_str(), "", testName, kPNG_FileExtension); |
SkBitmap referenceBitmap; |
bool decodedReferenceBitmap = |
SkImageDecoder::DecodeFile(path.c_str(), &referenceBitmap, |
@@ -165,7 +164,10 @@ |
} |
Expectations JsonExpectationsSource::get(const char *testName) { |
- return Expectations(fJsonExpectedResults[testName]); |
+ SkString testNameWithExtension(testName); |
+ testNameWithExtension.append("."); |
+ testNameWithExtension.append(kPNG_FileExtension); |
scroggo
2013/05/08 20:39:45
This will break my use of this function in skimage
epoger
2013/05/09 14:20:07
Thanks for the early warning on that. Actually, i
scroggo
2013/05/09 14:28:48
Yes. Thanks!
|
+ return Expectations(fJsonExpectedResults[testNameWithExtension.c_str()]); |
} |
/*static*/ SkData* JsonExpectationsSource::readIntoSkData(SkStream &stream, size_t maxBytes) { |