summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfview_embeddertest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fpdfsdk/src/fpdfview_embeddertest.cpp')
-rw-r--r--fpdfsdk/src/fpdfview_embeddertest.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp
index 896a196fb7..c06adb4102 100644
--- a/fpdfsdk/src/fpdfview_embeddertest.cpp
+++ b/fpdfsdk/src/fpdfview_embeddertest.cpp
@@ -184,7 +184,8 @@ TEST_F(FPDFViewEmbeddertest, Crasher_113) {
}
TEST_F(FPDFViewEmbeddertest, Crasher_451830) {
- EXPECT_TRUE(OpenDocument("testing/resources/bug_451830.pdf"));
+ // Document is damaged and can't be opened.
+ EXPECT_FALSE(OpenDocument("testing/resources/bug_451830.pdf"));
}
TEST_F(FPDFViewEmbeddertest, Crasher_452455) {
@@ -195,5 +196,6 @@ TEST_F(FPDFViewEmbeddertest, Crasher_452455) {
}
TEST_F(FPDFViewEmbeddertest, Crasher3) {
- EXPECT_TRUE(OpenDocument("testing/resources/bug_454695.pdf"));
+ // Document is damanged and can't be opened.
+ EXPECT_FALSE(OpenDocument("testing/resources/bug_454695.pdf"));
}