T11g Gallery Smoke Test

#元 #测试 122 words 1 min read

Rendering verification for T11g. The gallery shortcode itself only emits a placeholder div; the shortcode_gallery partial fetches the JSON at runtime, hands it to justifiedGallery for layout, and to lightGallery for the overlay. Fixture: /data/smoke/gallery.json — three placehold.co images.

Self-check list

  • Browser Network panel: /data/smoke/gallery.json returns 200
  • CDN injection: jQuery / justifiedGallery / lightGallery (+ thumbnail / zoom plugins) all load
  • DOM: #gallery-1 is replaced at runtime with three <a><img></a> items, laid out on one row by justifiedGallery
  • Clicking any thumbnail opens the lightGallery overlay with arrow navigation across all three images
  • The overlay caption shows the subHtml block (“Smoke fixture #1/2/3”)
  • Background and controls are readable in dark mode
  • No lightGallery / justifiedGallery errors in the console