blob: c59d5ca2789fdeae07b80cd40e514b3e45ac7d64 [file] [log] [blame]
// Copyright 2022 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "fxjs/xfa/cjx_object.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/xfa_js_embedder_test.h"
class CJX_ObjectEmbedderTest : public XFAJSEmbedderTest {};
// Should not crash, but document is not valid.
TEST_F(CJX_ObjectEmbedderTest, Bug1327884) {
ASSERT_FALSE(OpenDocument("bug_1327884.pdf"));
}
// Should not CHECK(), but document is uninteresting.
TEST_F(CJX_ObjectEmbedderTest, Bug1333298) {
ASSERT_TRUE(OpenDocument("bug_1333298.pdf"));
}