summaryrefslogtreecommitdiff
path: root/testing/xfa_js_embedder_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'testing/xfa_js_embedder_test.cpp')
-rw-r--r--testing/xfa_js_embedder_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/testing/xfa_js_embedder_test.cpp b/testing/xfa_js_embedder_test.cpp
index 8ac17f3083..133a938643 100644
--- a/testing/xfa_js_embedder_test.cpp
+++ b/testing/xfa_js_embedder_test.cpp
@@ -11,6 +11,7 @@
#include "fxjs/cfxjse_engine.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/base/ptr_util.h"
+#include "xfa/fxfa/cxfa_ffapp.h"
XFAJSEmbedderTest::XFAJSEmbedderTest()
: array_buffer_allocator_(
@@ -26,9 +27,13 @@ void XFAJSEmbedderTest::SetUp() {
EmbedderTest::SetExternalIsolate(isolate_);
EmbedderTest::SetUp();
+
+ CXFA_FFApp::SkipFontLoadForTesting(true);
}
void XFAJSEmbedderTest::TearDown() {
+ CXFA_FFApp::SkipFontLoadForTesting(false);
+
value_.reset();
script_context_ = nullptr;