diff options
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdfedit_embeddertest.cpp | 24 |
1 files changed, 8 insertions, 16 deletions
diff --git a/fpdfsdk/fpdfedit_embeddertest.cpp b/fpdfsdk/fpdfedit_embeddertest.cpp index 19bdaf57ee..46eab096cd 100644 --- a/fpdfsdk/fpdfedit_embeddertest.cpp +++ b/fpdfsdk/fpdfedit_embeddertest.cpp @@ -364,13 +364,11 @@ TEST_F(FPDFEditEmbeddertest, PathOnTopOfText) { // Render and check the result. Text is slightly different on Mac. FPDF_BITMAP bitmap = RenderPage(page); #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ - const char md5[] = "2f7c0deee10a9490538e195af64beb67"; - const char new_md5[] = "f9e6fa74230f234286bfcada9f7606d8"; - CompareBitmap2Options(bitmap, 200, 200, md5, new_md5); + const char md5[] = "f9e6fa74230f234286bfcada9f7606d8"; #else const char md5[] = "17c942c76ff229200f2c98073bb60d85"; - CompareBitmap(bitmap, 200, 200, md5); #endif + CompareBitmap(bitmap, 200, 200, md5); FPDFBitmap_Destroy(bitmap); UnloadPage(page); } @@ -437,13 +435,11 @@ TEST_F(FPDFEditEmbeddertest, AddStandardFontText) { EXPECT_TRUE(FPDFPage_GenerateContent(page)); FPDF_BITMAP page_bitmap = RenderPage(page); #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ - const char md5[] = "e19c90395d73cb9f37a6c3b0e8b18a9e"; - const char new_md5[] = "a4dddc1a3930fa694bbff9789dab4161"; - CompareBitmap2Options(page_bitmap, 612, 792, md5, new_md5); + const char md5[] = "a4dddc1a3930fa694bbff9789dab4161"; #else const char md5[] = "7c3a36ba7cec01688a16a14bfed9ecfc"; - CompareBitmap(page_bitmap, 612, 792, md5); #endif + CompareBitmap(page_bitmap, 612, 792, md5); FPDFBitmap_Destroy(page_bitmap); // Try another font @@ -456,13 +452,11 @@ TEST_F(FPDFEditEmbeddertest, AddStandardFontText) { EXPECT_TRUE(FPDFPage_GenerateContent(page)); page_bitmap = RenderPage(page); #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ - const char md5_2[] = "8e1c43dca6be68d364dbc283f5521041"; - const char new_md5_2[] = "a5c4ace4c6f27644094813fe1441a21c"; - CompareBitmap2Options(page_bitmap, 612, 792, md5_2, new_md5_2); + const char md5_2[] = "a5c4ace4c6f27644094813fe1441a21c"; #else const char md5_2[] = "e0e0873e3a2634a6394a431a51ce90ff"; - CompareBitmap(page_bitmap, 612, 792, md5_2); #endif + CompareBitmap(page_bitmap, 612, 792, md5_2); FPDFBitmap_Destroy(page_bitmap); // And some randomly transformed text @@ -475,13 +469,11 @@ TEST_F(FPDFEditEmbeddertest, AddStandardFontText) { EXPECT_TRUE(FPDFPage_GenerateContent(page)); page_bitmap = RenderPage(page); #if _FXM_PLATFORM_ == _FXM_PLATFORM_APPLE_ - const char md5_3[] = "c6e5df448428793c7e4b0c820bd8c85e"; - const char new_md5_3[] = "40b3ef04f915ff4c4208948001763544"; - CompareBitmap2Options(page_bitmap, 612, 792, md5_3, new_md5_3); + const char md5_3[] = "40b3ef04f915ff4c4208948001763544"; #else const char md5_3[] = "903ee10b6a9f0be51ecad0a1a0eeb171"; - CompareBitmap(page_bitmap, 612, 792, md5_3); #endif + CompareBitmap(page_bitmap, 612, 792, md5_3); FPDFBitmap_Destroy(page_bitmap); // TODO(npm): Why are there issues with text rotated by 90 degrees? |