Path:
tests/integration/features/html2pdf/11_bundle_document_with_wildcard_image_refs/test.itest
Lines:
28
Non-empty lines:
22
Non-empty lines covered with requirements:
22 / 22 (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 --generate-bundle-document --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/bundle-PDF.html
9
RUN: %check_exists --file %T/html2pdf/html/%THIS_TEST_FOLDER/input-PDF.html
10
RUN: %check_exists --file %T/html2pdf/html/%THIS_TEST_FOLDER/nested/input2-PDF.html
11
RUN: %check_exists --file %T/html2pdf/html/%THIS_TEST_FOLDER/nested/subnested/input3-PDF.html
12
13
# Individual nested doc (one level deep): wildcard must resolve using the
14
# original '../' path relative to its own location.
15
RUN: %cat %T/html2pdf/html/%THIS_TEST_FOLDER/nested/input2-PDF.html | filecheck %s --check-prefix CHECK-NESTED
16
CHECK-NESTED: data="../_assets/root_image.svg"
17
18
# Individual subnested doc (two levels deep): wildcard must resolve using the
19
# original '../../' path relative to its own location.
20
RUN: %cat %T/html2pdf/html/%THIS_TEST_FOLDER/nested/subnested/input3-PDF.html | filecheck %s --check-prefix CHECK-SUBNESTED
21
CHECK-SUBNESTED: data="../../_assets/root_image.svg"
22
23
# Bundle HTML: all '../' prefixes must be stripped so every image resolves
24
# correctly from the bundle root, regardless of original nesting depth.
25
RUN: %cat %T/html2pdf/html/bundle-PDF.html | filecheck %s --check-prefix CHECK-BUNDLE
26
CHECK-BUNDLE: data="_assets/root_image.svg"
27
CHECK-BUNDLE-NOT: data="../_assets/root_image.svg"
28
CHECK-BUNDLE-NOT: data="../../_assets/root_image.svg"