xref: /trunk/test/odf-validate/fixtures/para-fill/bitmap.json (revision 0e16a31d78a652c56c5c0fc79c752f48b9048df9)
1[
2 {
3  "name": "para_bitmap",
4  "expr": "[(p.String, ('GraphicObject:0000' not in u and 'GraphicObject:' in u), p.FillStyle.value) for e in [doc.Text.createEnumeration()] for p in iter(lambda: e.nextElement() if e.hasMoreElements() else None, None) if p.String.endswith('bitmap') for u in [p.ParaBackGraphicURL]]",
5  "expect": [
6   [
7    "direct bitmap",
8    false,
9    "BITMAP"
10   ],
11   [
12    "styled bitmap",
13    true,
14    "BITMAP"
15   ]
16  ]
17 },
18 {
19  "name": "parastyle_bitmap",
20  "expr": "[(('GraphicObject:0000' not in u and 'GraphicObject:' in u), s.FillStyle.value) for s in [doc.StyleFamilies.getByName('ParagraphStyles').getByName('S_bitmap')] for u in [s.ParaBackGraphicURL]]",
21  "expect": [
22   [
23    true,
24    "BITMAP"
25   ]
26  ]
27 }
28]