XFA: make FPDFViewEmbeddertest.Crashers test run successfully.
authorTom Sepez <tsepez@chromium.org>
Tue, 27 Jan 2015 01:18:35 +0000 (17:18 -0800)
committerTom Sepez <tsepez@chromium.org>
Tue, 27 Jan 2015 01:18:35 +0000 (17:18 -0800)
XFA is pickier, and returns false when loading some mangled documents.

TBR=thestig@chromium.org

Review URL: https://codereview.chromium.org/864953004

fpdfsdk/src/fpdfview_embeddertest.cpp

index 14a6532..76dd9a5 100644 (file)
@@ -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"));
 }