From c11edada828dc734cce6988e5819630a73326085 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 21 Jul 2023 20:06:32 -0300 Subject: content, test: linkContribution: tooltip icons --- .../snapshot/generateAlbumReleaseInfo.js.test.cjs | 16 +-- .../snapshot/generateTrackReleaseInfo.js.test.cjs | 2 +- .../test/snapshot/linkContribution.js.test.cjs | 144 ++++++++++++++++----- 3 files changed, 124 insertions(+), 38 deletions(-) (limited to 'tap-snapshots/test') diff --git a/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs index 9702cad8..3335a2eb 100644 --- a/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs @@ -7,18 +7,18 @@ 'use strict' exports[`test/snapshot/generateAlbumReleaseInfo.js > TAP > generateAlbumReleaseInfo (snapshot) > basic behavior 1`] = `

- By Toby Fox (music probably) and Tensei (hot jams) ( - - Bandcamp - - - ). + By Toby Fox (music probably) and Tensei (hot jams) + + Bandcamp + + + .
Cover art by Hanni Brosh.
- Wallpaper art by Hanni Brosh and Niklink (edits). + Wallpaper art by Hanni Brosh and Niklink (edits).
- Banner art by Hanni Brosh and Niklink (edits). + Banner art by Hanni Brosh and Niklink (edits).
Released 3/14/2011.
diff --git a/tap-snapshots/test/snapshot/generateTrackReleaseInfo.js.test.cjs b/tap-snapshots/test/snapshot/generateTrackReleaseInfo.js.test.cjs index 2add28ed..3d988dce 100644 --- a/tap-snapshots/test/snapshot/generateTrackReleaseInfo.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateTrackReleaseInfo.js.test.cjs @@ -25,7 +25,7 @@ exports[`test/snapshot/generateTrackReleaseInfo.js > TAP > generateTrackReleaseI

By Toby Fox.
- Cover art by Alpaca (🔥). + Cover art by Alpaca (🔥).

This wiki doesn't have any listening links for Suspicious Track.

` diff --git a/tap-snapshots/test/snapshot/linkContribution.js.test.cjs b/tap-snapshots/test/snapshot/linkContribution.js.test.cjs index 75b9d273..4cf3aa3f 100644 --- a/tap-snapshots/test/snapshot/linkContribution.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkContribution.js.test.cjs @@ -5,8 +5,8 @@ * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' -exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > loads of links 1`] = ` -Lorem Ipsum Lover ( +exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > loads of links (inline) 1`] = ` +Lorem Ipsum Lover ( External (loremipsum.io) @@ -29,6 +29,50 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > ) ` +exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > loads of links (tooltip) 1`] = ` +Lorem Ipsum Lover + + External (loremipsum.io) + + + + + External (loremipsum.io) + + + + + External (loremipsum.io) + + + + + External (loremipsum.io) + + + + + External (loremipsum.io) + + + + + External (loremipsum.io) + + + + + External (loremipsum.io) + + + + + External (loremipsum.io) + + + +` + exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > no accents 1`] = ` Clark Powell Grounder & Scratch @@ -36,41 +80,41 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > ` exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > no preventWrapping 1`] = ` -Clark Powell ( - - SoundCloud - - - ) -Grounder & Scratch (Snooping) -Toby Fox (Arrangement) ( - - Bandcamp - - - , - - External (toby.fox) - - - ) +Clark Powell ( + + SoundCloud + + + ) +Grounder & Scratch (Snooping) +Toby Fox (Arrangement) ( + + Bandcamp + + + , + + External (toby.fox) + + + ) ` exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > only showContribution 1`] = ` Clark Powell -Grounder & Scratch (Snooping) -Toby Fox (Arrangement) +Grounder & Scratch (Snooping) +Toby Fox (Arrangement) ` -exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > only showIcons 1`] = ` -Clark Powell ( +exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > only showIcons (inline) 1`] = ` +Clark Powell ( SoundCloud ) Grounder & Scratch -Toby Fox ( +Toby Fox ( Bandcamp @@ -83,15 +127,36 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > ) ` -exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > showContribution & showIcons 1`] = ` -Clark Powell ( +exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > only showIcons (tooltip) 1`] = ` +Clark Powell + + SoundCloud + + + +Grounder & Scratch (Snooping) +Toby Fox (Arrangement) + + Bandcamp + + + + + External (toby.fox) + + + +` + +exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > showContribution & showIcons (inline) 1`] = ` +Clark Powell ( SoundCloud ) -Grounder & Scratch (Snooping) -Toby Fox (Arrangement) ( +Grounder & Scratch (Snooping) +Toby Fox (Arrangement) ( Bandcamp @@ -103,3 +168,24 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > ) ` + +exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > showContribution & showIcons (tooltip) 1`] = ` +Clark Powell + + SoundCloud + + + +Grounder & Scratch (Snooping) +Toby Fox (Arrangement) + + Bandcamp + + + + + External (toby.fox) + + + +` -- cgit 1.3.0-6-gf8a5 From 3898fbe9380c7a8bc745eff548b112ad2e9c605b Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 24 Nov 2023 13:40:52 -0400 Subject: content, test: remove unused linkExternalFlash function --- .../test/snapshot/linkExternalFlash.js.test.cjs | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100644 tap-snapshots/test/snapshot/linkExternalFlash.js.test.cjs (limited to 'tap-snapshots/test') diff --git a/tap-snapshots/test/snapshot/linkExternalFlash.js.test.cjs b/tap-snapshots/test/snapshot/linkExternalFlash.js.test.cjs deleted file mode 100644 index d29d0dde..00000000 --- a/tap-snapshots/test/snapshot/linkExternalFlash.js.test.cjs +++ /dev/null @@ -1,18 +0,0 @@ -/* 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/linkExternalFlash.js > TAP > linkExternalFlash (snapshot) > basic behavior 1`] = ` -homestuck.com (page 4109) -YouTube (on any device) -www.bgreco.net (HQ Audio) -Newgrounds -` - -exports[`test/snapshot/linkExternalFlash.js > TAP > linkExternalFlash (snapshot) > secret page 1`] = ` -homestuck.com (secret page) -YouTube (on any device) -` -- cgit 1.3.0-6-gf8a5 From 153a9f927073d69773af9bf30a53e94cac91d5a9 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 24 Nov 2023 13:42:14 -0400 Subject: test: generateAlbumReleaseInfo: update snapshot --- tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tap-snapshots/test') diff --git a/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs b/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs index 3335a2eb..e9dbfea2 100644 --- a/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs +++ b/tap-snapshots/test/snapshot/generateAlbumReleaseInfo.js.test.cjs @@ -7,11 +7,9 @@ 'use strict' exports[`test/snapshot/generateAlbumReleaseInfo.js > TAP > generateAlbumReleaseInfo (snapshot) > basic behavior 1`] = `

- By Toby Fox (music probably) and Tensei (hot jams) - - Bandcamp - - + By Toby Fox (music probably) and Tensei (hot jams) + + tenseimusic .
Cover art by Hanni Brosh. -- cgit 1.3.0-6-gf8a5 From 4507d7a8e42d3f7fd8c6cf4b1d9f270370078b08 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 24 Nov 2023 13:50:27 -0400 Subject: test: linkContribution: update snapshot --- .../test/snapshot/linkContribution.js.test.cjs | 112 ++++++++------------- 1 file changed, 42 insertions(+), 70 deletions(-) (limited to 'tap-snapshots/test') diff --git a/tap-snapshots/test/snapshot/linkContribution.js.test.cjs b/tap-snapshots/test/snapshot/linkContribution.js.test.cjs index 4cf3aa3f..acb8faf4 100644 --- a/tap-snapshots/test/snapshot/linkContribution.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkContribution.js.test.cjs @@ -30,46 +30,30 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > ` exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > loads of links (tooltip) 1`] = ` -Lorem Ipsum Lover - - External (loremipsum.io) - - - - - External (loremipsum.io) - - - - - External (loremipsum.io) - - - - - External (loremipsum.io) - - - - - External (loremipsum.io) - - - - - External (loremipsum.io) - - - - - External (loremipsum.io) - - - - - External (loremipsum.io) - - +Lorem Ipsum Lover + + loremipsum.io + + + loremipsum.io + + + loremipsum.io + + + loremipsum.io + + + loremipsum.io + + + loremipsum.io + + + loremipsum.io + + + loremipsum.io ` @@ -128,23 +112,17 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > ` exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > only showIcons (tooltip) 1`] = ` -Clark Powell - - SoundCloud - - +Clark Powell + + plazmataz Grounder & Scratch (Snooping) -Toby Fox (Arrangement) - - Bandcamp - - - - - External (toby.fox) - - +Toby Fox (Arrangement) + + tobyfox + + + toby.fox ` @@ -170,22 +148,16 @@ exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > ` exports[`test/snapshot/linkContribution.js > TAP > linkContribution (snapshot) > showContribution & showIcons (tooltip) 1`] = ` -Clark Powell - - SoundCloud - - +Clark Powell + + plazmataz Grounder & Scratch (Snooping) -Toby Fox (Arrangement) - - Bandcamp - - - - - External (toby.fox) - - +Toby Fox (Arrangement) + + tobyfox + + + toby.fox ` -- cgit 1.3.0-6-gf8a5 From 25956ed1bbc7b894a0921530a2d7cbb892cb56c5 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 24 Nov 2023 14:14:53 -0400 Subject: test: linkExternal: update snapshot and loosely tidy test --- .../test/snapshot/linkExternal.js.test.cjs | 65 +++++++++++++++++----- 1 file changed, 51 insertions(+), 14 deletions(-) (limited to 'tap-snapshots/test') diff --git a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs index cd6dca76..dd5493c0 100644 --- a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs @@ -5,7 +5,41 @@ * Make sure to inspect the output below. Do not ignore changes! */ 'use strict' -exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > basic domain matches 1`] = ` +exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: album, style: compact 1`] = ` +youtu.be +youtube.com +youtube.com +` + +exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: album, style: normal 1`] = ` +YouTube (full album) +YouTube (full album) +YouTube +` + +exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: album, style: platform 1`] = ` +YouTube +YouTube +YouTube +` + +exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: generic, style: compact 1`] = ` +homestuck +plazmataz +aeritus +@awkwarddoesart +deviantart.com +en.wikipedia.org +poetryfoundation.org +instagram.com +patreon.com +open.spotify.com +buzinkai.newgrounds.com +music.solatrus.com +types.pl +` + +exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: generic, style: normal 1`] = ` Bandcamp SoundCloud Tumblr @@ -17,23 +51,26 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > basic d Patreon Spotify Newgrounds -` - -exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > custom domains for common platforms 1`] = ` -music.solatrus.com +Bandcamp (music.solatrus.com) Mastodon (types.pl) ` -exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > custom matches - album 1`] = ` -YouTube (full album) -YouTube (full album) -YouTube (playlist) -` - -exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > missing domain (arbitrary local path) 1`] = ` -Wiki Archive (local upload) +exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: generic, style: platform 1`] = ` +Bandcamp +SoundCloud +Tumblr +Twitter +DeviantArt +Wikipedia +Poetry Foundation +Instagram +Patreon +Spotify +Newgrounds +Bandcamp +Mastodon ` exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > unknown domain (arbitrary world wide web path) 1`] = ` -snoo.ping.as +External ` -- cgit 1.3.0-6-gf8a5 From 1c58d918e8126c4423608e9504a7f0fcbce2a64e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Fri, 24 Nov 2023 14:17:40 -0400 Subject: test: linkExternal: add flash snapshots --- .../test/snapshot/linkExternal.js.test.cjs | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'tap-snapshots/test') diff --git a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs index dd5493c0..bc022e4c 100644 --- a/tap-snapshots/test/snapshot/linkExternal.js.test.cjs +++ b/tap-snapshots/test/snapshot/linkExternal.js.test.cjs @@ -23,6 +23,33 @@ exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context YouTube ` +exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: flash, style: compact 1`] = ` +bgreco.net +homestuck.com +homestuck.com +youtube.com +youtu.be +some.external.site +` + +exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: flash, style: normal 1`] = ` +bgreco.net (high quality audio) +Homestuck (page 1234) +Homestuck (secret page) +YouTube (on any device) +YouTube (on any device) +External (some.external.site) +` + +exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: flash, style: platform 1`] = ` +bgreco.net +Homestuck +Homestuck +YouTube +YouTube +External +` + exports[`test/snapshot/linkExternal.js > TAP > linkExternal (snapshot) > context: generic, style: compact 1`] = ` homestuck plazmataz -- cgit 1.3.0-6-gf8a5