diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-02-02 11:22:42 -0800 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-02-02 11:22:42 -0800 |
commit | 3795a748bb3fb7fc3f2c6196af1f89627ac37f4e (patch) | |
tree | 26d0ce44bf019038406ce1a6fb3cea3caa7d180f /fpdfsdk | |
parent | d3e247709404e2793ff1c7a6a03e62c7349b2f06 (diff) | |
download | pdfium-3795a748bb3fb7fc3f2c6196af1f89627ac37f4e.tar.xz |
Merge to XFA: Add embedder test for fix to bug_452455.
Original Review URL: https://codereview.chromium.org/887063003
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/895713003
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/src/fpdfview_embeddertest.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/fpdfsdk/src/fpdfview_embeddertest.cpp b/fpdfsdk/src/fpdfview_embeddertest.cpp index 4827f76839..083925ff61 100644 --- a/fpdfsdk/src/fpdfview_embeddertest.cpp +++ b/fpdfsdk/src/fpdfview_embeddertest.cpp @@ -177,7 +177,13 @@ TEST_F(FPDFViewEmbeddertest, NamedDestsByName) { } // The following tests pass if the document opens without crashing. -TEST_F(FPDFViewEmbeddertest, Crashers) { +TEST_F(FPDFViewEmbeddertest, Crasher1) { // XFA branch detects this document as bad. EXPECT_FALSE(OpenDocument("testing/resources/bug_451830.pdf")); } + +TEST_F(FPDFViewEmbeddertest, Crasher2) { + EXPECT_TRUE(OpenDocument("testing/resources/bug_452455.pdf")); + FPDF_PAGE page = LoadPage(0); + EXPECT_NE(nullptr, page); +} |