diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/feed-picture-pager-test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/feed-picture-pager-test.js b/tools/feed-picture-pager-test.js index 7578e01..947c6aa 100644 --- a/tools/feed-picture-pager-test.js +++ b/tools/feed-picture-pager-test.js @@ -93,6 +93,11 @@ try { }); check('two pictures in a post: one gallery, side by side, one height', gal.n === 2 && gal.sameRow && gal.h > 50 && gal.h < 300, JSON.stringify(gal)); check('a lone picture is not put in a gallery', gal.lone); + // painted from the tile copy (a proper resize), not the column copy shrunk by the browser + check('gallery tiles are painted from the tile copies', await waitFor(() => { + const g = document.querySelector('.notes-feed .note-gallery'); + return !!g && [...g.querySelectorAll('img')].every((i) => /^blob:/.test(i.currentSrc || i.src) && i.naturalHeight > 0 && i.naturalHeight <= 360); + }, null, 5000)); console.log('\n[a tap on the picture that opened it shows its details; the next closes it]'); const y0 = await openPic('two pictures'); |
