From 944ea96ae6f72c11527091a718b124d7e396cf34 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 13 Jan 2024 15:57:17 -0400 Subject: test: update image snapshot tests --- tap-snapshots/test/snapshot/image.js.test.cjs | 46 +++++++++++++++------------ test/lib/content-function.js | 1 + 2 files changed, 27 insertions(+), 20 deletions(-) diff --git a/tap-snapshots/test/snapshot/image.js.test.cjs b/tap-snapshots/test/snapshot/image.js.test.cjs index 463447c9..9421d393 100644 --- a/tap-snapshots/test/snapshot/image.js.test.cjs +++ b/tap-snapshots/test/snapshot/image.js.test.cjs @@ -7,36 +7,42 @@ 'use strict' exports[`test/snapshot/image.js > TAP > image (snapshot) > content warnings via tags 1`] = `
-
- - - cw: too cool for school -
- click to show -
-
+
+
+ + + + +
+ too cool for school +
+ click to show +
+
+
+
` exports[`test/snapshot/image.js > TAP > image (snapshot) > id with link 1`] = ` -
+ ` exports[`test/snapshot/image.js > TAP > image (snapshot) > id with square 1`] = ` -
+
` exports[`test/snapshot/image.js > TAP > image (snapshot) > id without link 1`] = ` -
+
` exports[`test/snapshot/image.js > TAP > image (snapshot) > lazy with square 1`] = ` - -
+ +
` exports[`test/snapshot/image.js > TAP > image (snapshot) > link with file size 1`] = ` -
+ ` exports[`test/snapshot/image.js > TAP > image (snapshot) > missing image path 1`] = ` @@ -52,25 +58,25 @@ exports[`test/snapshot/image.js > TAP > image (snapshot) > source missing 1`] = ` exports[`test/snapshot/image.js > TAP > image (snapshot) > source via path 1`] = ` -
+
` exports[`test/snapshot/image.js > TAP > image (snapshot) > source via src 1`] = ` -
+
` exports[`test/snapshot/image.js > TAP > image (snapshot) > square 1`] = ` -
+
` exports[`test/snapshot/image.js > TAP > image (snapshot) > thumb requested but source is gif 1`] = ` -
+
` exports[`test/snapshot/image.js > TAP > image (snapshot) > thumbnail details 1`] = ` -
+
` exports[`test/snapshot/image.js > TAP > image (snapshot) > width & height 1`] = ` -
+
` diff --git a/test/lib/content-function.js b/test/lib/content-function.js index a4c5dac1..aa8c66cb 100644 --- a/test/lib/content-function.js +++ b/test/lib/content-function.js @@ -51,6 +51,7 @@ export function testContentFunctions(t, message, fn) { to, urls, + cachebust: 413, pagePath: ['home'], appendIndexHTML: false, getColors: c => getColors(c, {chroma}), -- cgit 1.3.0-6-gf8a5