diff --git a/engine/tests/image_xobject_test.cpp b/engine/tests/image_xobject_test.cpp index 216bbfb..ff01886 100644 --- a/engine/tests/image_xobject_test.cpp +++ b/engine/tests/image_xobject_test.cpp @@ -436,6 +436,24 @@ TEST(ImageXObjectVerification, JpegLogoAndPhotoDecodeAndMatchPdfiumRender) { QPDF qpdf; auto objects = buildFirstPageObjects(qpdf, pdf); + + // DEBUG: Parse again just to print + { + Lexer lexer(content); + auto tokens = lexer.tokenize(); + ContentParser parser(tokens); + auto operations = parser.parse(); + for (const auto& op : operations) { + std::cout << "DEBUG OP: " << op.op << " operands: "; + for (const auto& operand : op.operands) { + if (operand->type == AstNodeType::Number) std::cout << operand->numberValue << " "; + else if (operand->type == AstNodeType::Name) std::cout << "/" << operand->stringValue << " "; + else std::cout << "[type " << (int)operand->type << "] "; + } + std::cout << "\n"; + } + } + auto images = imageObjects(objects); ASSERT_EQ(images.size(), 2u);