aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn MacFarlane <[email protected]>2025-02-01 10:39:31 -0800
committerJohn MacFarlane <[email protected]>2025-02-01 10:39:31 -0800
commitfe3e7c948c986e00e563eea640bc5eb3b9bde210 (patch)
treebde36c2f750131a60ae248bc844ecf419a56acc8 /test
parent8e18a811b40456af47174e7f6b41ebc97c21da8f (diff)
ODT reader: create Figure elements for images that are figures.
Closes #10567.
Diffstat (limited to 'test')
-rw-r--r--test/odt/native/imageIndex.native29
-rw-r--r--test/odt/native/imageWithCaption.native29
2 files changed, 56 insertions, 2 deletions
diff --git a/test/odt/native/imageIndex.native b/test/odt/native/imageIndex.native
index fe7b69c16..5388bc4df 100644
--- a/test/odt/native/imageIndex.native
+++ b/test/odt/native/imageIndex.native
@@ -1 +1,28 @@
-[Para [Image ("",[],[("width","5.292cm"),("height","5.292cm")]) [Str "Abbildung",Space,Str "1:",Space,Str "Image",Space,Str "caption"] ("Pictures/10000000000000FA000000FAD6A15225.jpg","fig:")]]
+[ Figure
+ ( "" , [] , [] )
+ (Caption
+ Nothing
+ [ Plain
+ [ Str "Image"
+ , Space
+ , Str "caption"
+ ]
+ ])
+ [ Plain
+ [ Image
+ ( ""
+ , []
+ , [ ( "width" , "5.292cm" ) , ( "height" , "5.292cm" ) ]
+ )
+ [ Str "Abbildung"
+ , Space
+ , Str "1:"
+ , Space
+ , Str "Image"
+ , Space
+ , Str "caption"
+ ]
+ ( "Pictures/10000000000000FA000000FAD6A15225.jpg" , "" )
+ ]
+ ]
+] \ No newline at end of file
diff --git a/test/odt/native/imageWithCaption.native b/test/odt/native/imageWithCaption.native
index fe7b69c16..5388bc4df 100644
--- a/test/odt/native/imageWithCaption.native
+++ b/test/odt/native/imageWithCaption.native
@@ -1 +1,28 @@
-[Para [Image ("",[],[("width","5.292cm"),("height","5.292cm")]) [Str "Abbildung",Space,Str "1:",Space,Str "Image",Space,Str "caption"] ("Pictures/10000000000000FA000000FAD6A15225.jpg","fig:")]]
+[ Figure
+ ( "" , [] , [] )
+ (Caption
+ Nothing
+ [ Plain
+ [ Str "Image"
+ , Space
+ , Str "caption"
+ ]
+ ])
+ [ Plain
+ [ Image
+ ( ""
+ , []
+ , [ ( "width" , "5.292cm" ) , ( "height" , "5.292cm" ) ]
+ )
+ [ Str "Abbildung"
+ , Space
+ , Str "1:"
+ , Space
+ , Str "Image"
+ , Space
+ , Str "caption"
+ ]
+ ( "Pictures/10000000000000FA000000FAD6A15225.jpg" , "" )
+ ]
+ ]
+] \ No newline at end of file