| 755 | } |
| 756 | |
| 757 | void TestDocument::Synchronizer_syncFromTeX() |
| 758 | { |
| 759 | QFETCH(QSharedPointer<TWSyncTeXSynchronizer>, synchronizer); |
| 760 | QFETCH(TWSynchronizer::Resolution, resolution); |
| 761 | QFETCH(TWSynchronizer::TeXSyncPoint, texPoint); |
| 762 | QFETCH(TWSynchronizer::PDFSyncPoint, pdfPoint); |
| 763 | |
| 764 | #if WITH_POPPLERQT |
| 765 | if (QtPDF::Backend::Document::defaultBackend() == QStringLiteral("poppler-qt")) { |
| 766 | QEXPECT_FAIL("complex-footnote inside (word)", "Complex footnotes don't always work yet", Continue); |
| 767 | QEXPECT_FAIL("complex-footnote inside (char)", "Complex footnotes don't always work yet", Continue); |
| 768 | if (popplerRuntimeVersion() >= VersionNumber(22, 1, 0)) { |
| 769 | QEXPECT_FAIL("complex-footnote before (word)", "Complex footnotes don't always work yet (poppler >= 22.01.0)", Continue); |
| 770 | QEXPECT_FAIL("complex-footnote before (char)", "Complex footnotes don't always work yet (poppler >= 22.01.0)", Continue); |
| 771 | } |
| 772 | } |
| 773 | #endif |
| 774 | QCOMPARE(synchronizer->syncFromTeX(texPoint, resolution), pdfPoint); |
| 775 | } |
| 776 | |
| 777 | void TestDocument::Synchronizer_syncFromPDF_data() |
| 778 | { |
nothing calls this directly
no test coverage detected