diff options
author | Stephen Kraus <8003332+stephenmk@users.noreply.github.com> | 2023-12-22 19:17:17 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-23 01:17:17 +0000 |
commit | 93cdbe4b718f9f7a2cd0d6efc545ec51d049812f (patch) | |
tree | fd5026b3ed4432a98d361063e13084139edb4e81 /test/data/dictionaries/valid-dictionary1 | |
parent | c18141a09b519a8ea650874aa09c06d7fa4fb98d (diff) |
Add support for alt attribute on structured content images (#359)
* Add support for alt attribute on structured content images
* Add new `alt` property for structured content images
* Update test script with new media file count
---------
Co-authored-by: stephenmk <stephenmk@users.noreply.github.com>
Diffstat (limited to 'test/data/dictionaries/valid-dictionary1')
-rw-r--r-- | test/data/dictionaries/valid-dictionary1/aosaba_auto.png | bin | 0 -> 1699 bytes | |||
-rw-r--r-- | test/data/dictionaries/valid-dictionary1/aosaba_mono.png | bin | 0 -> 1807 bytes | |||
-rw-r--r-- | test/data/dictionaries/valid-dictionary1/term_bank_1.json | 9 |
3 files changed, 8 insertions, 1 deletions
diff --git a/test/data/dictionaries/valid-dictionary1/aosaba_auto.png b/test/data/dictionaries/valid-dictionary1/aosaba_auto.png Binary files differnew file mode 100644 index 00000000..ddef36ac --- /dev/null +++ b/test/data/dictionaries/valid-dictionary1/aosaba_auto.png diff --git a/test/data/dictionaries/valid-dictionary1/aosaba_mono.png b/test/data/dictionaries/valid-dictionary1/aosaba_mono.png Binary files differnew file mode 100644 index 00000000..a0776098 --- /dev/null +++ b/test/data/dictionaries/valid-dictionary1/aosaba_mono.png diff --git a/test/data/dictionaries/valid-dictionary1/term_bank_1.json b/test/data/dictionaries/valid-dictionary1/term_bank_1.json index 38b022fa..14f66d95 100644 --- a/test/data/dictionaries/valid-dictionary1/term_bank_1.json +++ b/test/data/dictionaries/valid-dictionary1/term_bank_1.json @@ -66,7 +66,7 @@ "莢\n" ]}, {"type": "structured-content", "content": [ - "Imgae aspect ratio tests:\nあ", + "Image aspect ratio tests:\nあ", {"tag": "img", "path": "character2.gif", "height": 1.1, "imageRendering": "crisp-edges", "appearance": "monochrome", "background": false, "sizeUnits": "em", "collapsed": false, "collapsible": false}, "あ\nあ", {"tag": "img", "path": "character2.gif", "width": 0.4125, "imageRendering": "crisp-edges", "appearance": "monochrome", "background": false, "sizeUnits": "em", "collapsed": false, "collapsible": false}, @@ -77,6 +77,13 @@ "あ" ]}, {"type": "structured-content", "content": [ + "Image alt text tests.\n𬵪 = Unicode character\n", + {"tag": "img", "alt": "𬵪", "path": "aosaba_mono.png", "height": 1.0, "width": 1.0, "background": false, "sizeUnits": "em", "collapsed": false, "collapsible": false, "appearance": "monochrome"}, + " = monochrome PNG\n", + {"tag": "img", "alt": "𬵪", "path": "aosaba_auto.png", "height": 1.0, "width": 1.0, "background": false, "sizeUnits": "em", "collapsed": false, "collapsible": false, "appearance": "auto"}, + " = color PNG" + ]}, + {"type": "structured-content", "content": [ {"tag": "div", "style": {"fontStyle": "normal"}, "content": "fontStyle:normal"}, {"tag": "div", "style": {"fontStyle": "italic"}, "content": "fontStyle:italic"}, {"tag": "div", "style": {"fontWeight": "normal"}, "content": "fontWeight:normal"}, |