aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorTristan Stenner <ttstenner@gmail.com>2021-10-27 15:21:45 +0200
committerJohn MacFarlane <jgm@berkeley.edu>2021-10-29 08:40:20 -0700
commit2444cbc668eb6deaa3a1ce71dac682fab68b0aae (patch)
tree1046d54777dbd742c2227861cc3a6935167ff157 /test
parent31d6a494de232b6fa5e579f2b71ce41f9c184df3 (diff)
downloadpandoc-2444cbc668eb6deaa3a1ce71dac682fab68b0aae.tar.gz
Docx writer: add IDs to native_numbering test
Diffstat (limited to 'test')
-rw-r--r--test/docx/golden/image.docxbin26814 -> 26861 bytes
-rw-r--r--test/docx/image_writer_test.native8
2 files changed, 5 insertions, 3 deletions
diff --git a/test/docx/golden/image.docx b/test/docx/golden/image.docx
index 9a50d7c0c..099f705e4 100644
--- a/test/docx/golden/image.docx
+++ b/test/docx/golden/image.docx
Binary files differ
diff --git a/test/docx/image_writer_test.native b/test/docx/image_writer_test.native
index a0fb3ee3a..8d3bac1ee 100644
--- a/test/docx/image_writer_test.native
+++ b/test/docx/image_writer_test.native
@@ -1,8 +1,10 @@
[Para [Str "No",Space,Str "width",Space,Str "given:"]
-,Para [Image ("",[],[]) [Str "testimg"] ("lalune.jpg","fig:")]
+,Para [Image ("fig:testimg",[],[]) [Str "testimg"] ("lalune.jpg","fig:")]
,Para [Str "With",Space,Str "height",Space,Str "10cm:"]
-,Para [Image ("",[],[("height","10cm")]) [Str "2testimg"] ("lalune.jpg","fig:")]
+,Para [Image ("fig:2testimg",[],[("height","10cm")]) [Str "2testimg"] ("lalune.jpg","fig:")]
,Para [Str "With",Space,Str "width",Space,Str "6cm:"]
,Para [Image ("",[],[("width","6cm")]) [Str "3testimg"] ("lalune.jpg","fig:")]
,Header 1 ("with-height-3in-and-width-6in",[],[]) [Str "With",Space,Str "height",Space,Str "3in",Space,Str "and",Space,Str "width",Space,Str "6in:"]
-,Para [Image ("",[],[("width","6in"),("height","3in")]) [Str "4testimg"] ("lalune.jpg","fig:")]] \ No newline at end of file
+,Para [Image ("",[],[("width","6in"),("height","3in")]) [Str "4testimg"] ("lalune.jpg","fig:")]
+,Para [RawInline (Format "openxml") "<w:fldSimple w:instr=\"REF ref_fig:testimg\" />"]
+,Para [RawInline (Format "openxml") "<w:fldSimple w:instr=\"REF ref_fig:2testimg\" />"]]