xref: /aosp_15_r20/external/pdfium/fxjs/xfa/cjx_object_embeddertest.cpp (revision 3ac0a46f773bac49fa9476ec2b1cf3f8da5ec3a4)
1 // Copyright 2022 The PDFium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "fxjs/xfa/cjx_object.h"
6 
7 #include "testing/gtest/include/gtest/gtest.h"
8 #include "testing/xfa_js_embedder_test.h"
9 
10 class CJX_ObjectEmbedderTest : public XFAJSEmbedderTest {};
11 
12 // Should not crash, but document is not valid.
TEST_F(CJX_ObjectEmbedderTest,Bug1327884)13 TEST_F(CJX_ObjectEmbedderTest, Bug1327884) {
14   ASSERT_FALSE(OpenDocument("bug_1327884.pdf"));
15 }
16 
17 // Should not CHECK(), but document is uninteresting.
TEST_F(CJX_ObjectEmbedderTest,Bug1333298)18 TEST_F(CJX_ObjectEmbedderTest, Bug1333298) {
19   ASSERT_TRUE(OpenDocument("bug_1333298.pdf"));
20 }
21