summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/fpdfview_embeddertest.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-01-26 17:18:35 -0800
committerTom Sepez <tsepez@chromium.org>2015-01-26 17:18:35 -0800
commita946e3a8854b09c2130c92f1ae24cb796a0f9095 (patch)
tree543430761493a01a015d0c7afff85d1499eedbe6 /fpdfsdk/src/fpdfview_embeddertest.cpp
parente80685c12c3620c178a2286e00dd03c7886f8785 (diff)
downloadpdfium-a946e3a8854b09c2130c92f1ae24cb796a0f9095.tar.xz
XFA: make FPDFViewEmbeddertest.Crashers test run successfully.
XFA is pickier, and returns false when loading some mangled documents. TBR=thestig@chromium.org Review URL: https://codereview.chromium.org/864953004
Diffstat (limited to 'fpdfsdk/src/fpdfview_embeddertest.cpp')
-rw-r--r--fpdfsdk/src/fpdfview_embeddertest.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp
index 14a6532a58..76dd9a5798 100644
--- a/fpdfsdk/src/fpdfview_embeddertest.cpp
+++ b/fpdfsdk/src/fpdfview_embeddertest.cpp
@@ -180,5 +180,6 @@ TEST_F(FPDFViewEmbeddertest, NamedDestsByName) {
// The following tests pass if the document opens without crashing.
TEST_F(FPDFViewEmbeddertest, Crashers) {
- EXPECT_TRUE(OpenDocument("testing/resources/bug_451830.pdf"));
+ // XFA branch detects this document as bad.
+ EXPECT_FALSE(OpenDocument("testing/resources/bug_451830.pdf"));
}