Path:
tests/integration/features/html2pdf/09_cross_document_links_relative_paths/test.itest
Lines:
19
Non-empty lines:
13
Non-empty lines covered with requirements:
13 / 13 (100.0%)
Functions:
0
Functions covered by requirements:
0 / 0 (0.0%)
1
# @relation(SDOC-SRS-51, scope=file)
2
3
REQUIRES: TEST_HTML2PDF
4
5
RUN: %strictdoc export %S --formats=html2pdf --output-dir %T | filecheck %s --dump-input=fail
6
CHECK: html2pdf4doc: JS logs from the print session
7
8
RUN: %check_exists --file %T/html2pdf/html/%THIS_TEST_FOLDER/index-PDF.html
9
RUN: %check_exists --file %T/html2pdf/html/%THIS_TEST_FOLDER/nested/other-PDF.html
10
RUN: %check_exists --file %T/html2pdf/pdf/index.pdf
11
RUN: %check_exists --file %T/html2pdf/pdf/nested/other.pdf
12
13
RUN: %cat %T/html2pdf/html/%THIS_TEST_FOLDER/index-PDF.html | filecheck %s --check-prefix CHECK-INDEX-HTML
14
CHECK-INDEX-HTML: <p>Link to the nested document: <a href="../09_cross_document_links_relative_paths/nested/other-PDF.html#TARGET-333">🔗 67. FINAL LAST TARGET</a></p>
15
16
RUN: %cat %T/html2pdf/html/%THIS_TEST_FOLDER/nested/other-PDF.html | filecheck %s --check-prefix CHECK-OTHER-HTML
17
CHECK-OTHER-HTML: <p>Link to the parent document: <a href="../../09_cross_document_links_relative_paths/index-PDF.html#INDEX-DOC">🔗 Parent document</a></p>
18
19
RUN: python %S/test_pdf.py