diff options
author | Lei Zhang <thestig@chromium.org> | 2017-06-28 16:15:06 -0700 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-06-28 23:28:08 +0000 |
commit | 1ef2f828f71e40437d82bb039dcb087c1beb7bd6 (patch) | |
tree | 2ac73e7938f0c6c967eed8627ee81d77618c66e3 /xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp | |
parent | 297f161a02d79cef88f55906722534bee2da730b (diff) | |
download | pdfium-1ef2f828f71e40437d82bb039dcb087c1beb7bd6.tar.xz |
XFA: Add test to show Oneof() works correctly.
The new embedder test shows Oneof() works, whereas the corpus test does
not. It turns out the corpus test was bad, and trying to fix it exposed
a different bug. So roll DEPS for the testing corpus anyway to get
improved tests, but keep the suppression for now.
BUG=pdfium:781
Change-Id: I3cc6b9a414384c917f205eff064c5dd2175d09fe
Reviewed-on: https://pdfium-review.googlesource.com/6973
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: Nicolás Peña <npm@chromium.org>
Diffstat (limited to 'xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp')
-rw-r--r-- | xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp b/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp index 45f1d16e35..7902bb7c8d 100644 --- a/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp +++ b/xfa/fxfa/fm2js/cxfa_fm2jscontext_embeddertest.cpp @@ -859,7 +859,10 @@ TEST_F(FM2JSContextEmbedderTest, Oneof) { {"Oneof(3, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1)", true}, {"Oneof(\"John\", \"Bill\", \"Gary\", \"Joan\", \"John\", \"Lisa\")", true}, - {"Oneof(3, 1, 25)", false}}; + {"Oneof(3, 1, 25)", false}, + {"Oneof(3, 3, null)", true}, + {"Oneof(3, null, null)", false}, + }; for (size_t i = 0; i < FX_ArraySize(tests); ++i) { EXPECT_TRUE(Execute(tests[i].program)); |