« get me outta code hell

image.js.test.cjs « snapshot « test « tap-snapshots - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/tap-snapshots/test/snapshot/image.js.test.cjs
blob: 77e95866ed32cf5ad95caeb5881f3cd9a1ed0408 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/* IMPORTANT
 * This snapshot file is auto-generated, but designed for humans.
 * It should be checked into source control and tracked carefully.
 * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
 * Make sure to inspect the output below.  Do not ignore changes!
 */
'use strict'
exports[`test/snapshot/image.js > TAP > image (snapshot) > content warnings via tags 1`] = `
<div class="image-container reveal">
    <div class="image-outer-area">
        <div class="image-inner-area">
            <img class="image" src="media/album-art/beyond-canon/cover.png">
            <span class="reveal-text-container">
                <span class="reveal-text">
                    <img class="reveal-symbol" src="static/warning.svg?413">
                    <br>
                    <span class="reveal-warnings">too cool for school</span>
                    <br>
                    <span class="reveal-interaction">click to show</span>
                </span>
            </span>
        </div>
    </div>
</div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > dimensions 1`] = `
<div class="image-container"><div class="image-outer-area"><div class="image-inner-area"><img class="image" width="400" src="foobar"></div></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > dimensions with square 1`] = `
<div class="image-container"><div class="image-outer-area"><div class="image-inner-area"><img class="image" width="400" src="foobar"></div></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > lazy with square 1`] = `
<noscript><div class="image-container square"><div class="image-outer-area square-content"><div class="image-inner-area"><img class="image" src="foobar"></div></div></div></noscript>
<div class="image-container square js-hide"><div class="image-outer-area square-content"><div class="image-inner-area"><img class="image lazy" data-original="foobar"></div></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > link with file size 1`] = `
<div class="image-container has-link"><div class="image-outer-area"><a class="image-link" href="media/album-art/pingas/cover.png"><div class="image-inner-area"><img class="image" src="media/album-art/pingas/cover.png"></div></a></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > missing image path 1`] = `
<div class="image-container placeholder-image"><div class="image-outer-area"><div class="image-inner-area"><div class="image-text-area">(This image file is missing)</div></div></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > missing image path w/ missingSourceContent 1`] = `
<div class="image-container placeholder-image"><div class="image-outer-area"><div class="image-inner-area"><div class="image-text-area">Cover's missing, whoops</div></div></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > source missing 1`] = `
<div class="image-container placeholder-image"><div class="image-outer-area"><div class="image-inner-area"><div class="image-text-area">Example of missing source message.</div></div></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > source via path 1`] = `
<div class="image-container"><div class="image-outer-area"><div class="image-inner-area"><img class="image" src="media/album-art/beyond-canon/cover.png"></div></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > source via src 1`] = `
<div class="image-container"><div class="image-outer-area"><div class="image-inner-area"><img class="image" src="https://example.com/bananas.gif"></div></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > square 1`] = `
<div class="image-container square"><div class="image-outer-area square-content"><div class="image-inner-area"><img class="image" src="foobar"></div></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > thumb requested but source is gif 1`] = `
<div class="image-container"><div class="image-outer-area"><div class="image-inner-area"><img class="image" src="media/flash-art/5426.gif"></div></div></div>
`

exports[`test/snapshot/image.js > TAP > image (snapshot) > thumbnail details 1`] = `
<div class="image-container"><div class="image-outer-area"><div class="image-inner-area"><img class="image" data-original-length="1200" data-thumbs="voluminous:1200 middling:900 petite:20" src="thumb/album-art/beyond-canon/cover.voluminous.jpg"></div></div></div>
`