linkThing.js.test.cjs 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. /* IMPORTANT
  2. * This snapshot file is auto-generated, but designed for humans.
  3. * It should be checked into source control and tracked carefully.
  4. * Re-generate by setting TAP_SNAPSHOT=1 and running tests.
  5. * Make sure to inspect the output below. Do not ignore changes!
  6. */
  7. 'use strict'
  8. exports[`test/snapshot/linkThing.js > TAP > linkThing (snapshot) > basic behavior 1`] = `
  9. <a style="--primary-color: #abcdef" href="track/foo/">Cool track!</a>
  10. `
  11. exports[`test/snapshot/linkThing.js > TAP > linkThing (snapshot) > color 1`] = `
  12. <a href="track/showtime-piano-refrain/">Showtime (Piano Refrain)</a>
  13. <a style="--primary-color: #38f43d" href="track/showtime-piano-refrain/">Showtime (Piano Refrain)</a>
  14. <a style="--primary-color: #aaccff" href="track/showtime-piano-refrain/">Showtime (Piano Refrain)</a>
  15. <span style="--primary-color: #aaccff" class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="track/showtime-piano-refrain/">Showtime (Piano Refrain)</a></span><span class="tooltip thing-name-tooltip"><span class="tooltip-content">Showtime (Piano Refrain)</span></span></span>
  16. `
  17. exports[`test/snapshot/linkThing.js > TAP > linkThing (snapshot) > nested links in content stripped 1`] = `
  18. <a href="foo/"><b>Oooo! Very spooky.</b></a>
  19. `
  20. exports[`test/snapshot/linkThing.js > TAP > linkThing (snapshot) > preferShortName 1`] = `
  21. <span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="tag/five-oceanfalls/">Five</a></span><span class="tooltip thing-name-tooltip"><span class="tooltip-content">Five (Oceanfalls)</span></span></span>
  22. `
  23. exports[`test/snapshot/linkThing.js > TAP > linkThing (snapshot) > tags in name escaped 1`] = `
  24. <a href="track/foo/">&lt;a href=&quot;SNOOPING&quot;&gt;AS USUAL&lt;/a&gt; I SEE</a>
  25. <a href="track/bar/">&lt;b&gt;boldface&lt;/b&gt;</a>
  26. <a href="album/exile/">&gt;Exile&lt;</a>
  27. <a href="track/heart/">&lt;3</a>
  28. `
  29. exports[`test/snapshot/linkThing.js > TAP > linkThing (snapshot) > tooltip & content 1`] = `
  30. <a href="album/beyond-canon/">Beyond Canon</a>
  31. <a title="Beyond Canon" href="album/beyond-canon/">Beyond Canon</a>
  32. <a title="Beyond Canon" href="album/beyond-canon/">Next</a>
  33. <a href="album/beyond-canon/">Beyond Canon</a>
  34. <span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="album/beyond-canon/">BC</a></span><span class="tooltip thing-name-tooltip"><span class="tooltip-content">Beyond Canon</span></span></span>
  35. <span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="album/beyond-canon/">Next</a></span><span class="tooltip thing-name-tooltip"><span class="tooltip-content">Beyond Canon</span></span></span>
  36. <a href="album/beyond-canon/">Next</a>
  37. <span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="album/beyond-canon/">Beyond Canon</a></span><span class="tooltip thing-name-tooltip"><span class="tooltip-content">Beyond Canon</span></span></span>
  38. <span class="text-with-tooltip"><span class="hoverable"><a class="text-with-tooltip-interaction-cue" href="album/beyond-canon/">Next</a></span><span class="tooltip thing-name-tooltip"><span class="tooltip-content">Beyond Canon</span></span></span>
  39. <a href="album/beyond-canon/">Banana</a>
  40. `