Index: core/fxcodec/codec/fx_codec_embeddertest.cpp |
diff --git a/core/fxge/ge/fx_ge_text_embeddertest.cpp b/core/fxcodec/codec/fx_codec_embeddertest.cpp |
similarity index 63% |
copy from core/fxge/ge/fx_ge_text_embeddertest.cpp |
copy to core/fxcodec/codec/fx_codec_embeddertest.cpp |
index 045b6dc8690cbcfe36c0a4d98b9259a2d96c0113..441494c0e6c4449b9df4bd0675e11058ad060219 100644 |
--- a/core/fxge/ge/fx_ge_text_embeddertest.cpp |
+++ b/core/fxcodec/codec/fx_codec_embeddertest.cpp |
@@ -5,11 +5,12 @@ |
#include "testing/embedder_test.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-class FXGETextEmbedderTest : public EmbedderTest {}; |
+class FXCodecEmbeddertest : public EmbedderTest {}; |
-TEST_F(FXGETextEmbedderTest, BadItalic) { |
- // Shouldn't crash. |
- EXPECT_TRUE(OpenDocument("bug_601362.pdf")); |
+TEST_F(FXCodecEmbeddertest, Bug_631912) { |
+ // Test jbig2 image in PDF file can be loaded successfully. |
+ // Should not crash. |
+ EXPECT_TRUE(OpenDocument("bug_631912.pdf")); |
FPDF_PAGE page = LoadPage(0); |
EXPECT_NE(nullptr, page); |
FPDF_BITMAP bitmap = RenderPage(page); |