diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2021-01-25 17:34:28 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-01-25 19:23:59 +0100 |
commit | cf5fa358a6bf6e7c0aae2dca1e8fa3334d95ebdb (patch) | |
tree | 1997e7fd65782c2861533d6d3416613a9f9225c1 /sd/qa | |
parent | 0b39d386e4742afa4efcf293baf0e2922505306a (diff) |
PPTX export: fix missing audio anim node for slide narrations
Once the audio node is there, it'll be possible to specify various
custom properties on it in follow-up commits.
Change-Id: I8c00de27de483687eaf76d1661baf59c52711246
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109920
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sd/qa')
-rw-r--r-- | sd/qa/unit/export-tests-ooxml1.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sd/qa/unit/export-tests-ooxml1.cxx b/sd/qa/unit/export-tests-ooxml1.cxx index e87c04a06cbb..392aa4a8b32e 100644 --- a/sd/qa/unit/export-tests-ooxml1.cxx +++ b/sd/qa/unit/export-tests-ooxml1.cxx @@ -1347,6 +1347,12 @@ void SdOOXMLExportTest1::testNarrationMimeType() // i.e. '<p:cmd type="call">' was written instead of '<p:cmd type="call" cmd="playFrom(0.0)">'. assertXPath(pSlideDoc, "//p:cmd", "cmd", "playFrom(0.0)"); + // Without the accompanying fix in place, this test would have failed with: + // - Expected: 1 + // - Actual : 0 + // i.e. <p:childTnLst> had no <p:audio> children, the whole audio animation node was lost. + assertXPath(pSlideDoc, "//p:childTnLst/p:audio/p:cMediaNode", 1); + xDocShRef->DoClose(); } |