MCPcopy Create free account
hub / github.com/basecamp/hey-cli / TestExtractImageURLsNone

Function TestExtractImageURLsNone

internal/htmlutil/htmlutil_test.go:114–119  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

112 {name: "display none", html: `<p>Before</p><div style="DISPLAY: none !important">Hidden</div><p>After</p>`, want: "Before After"},
113 {name: "later display wins", html: `<p style="display: none; display: block">Visible</p>`, want: "Visible"},
114 {name: "important display wins", html: `<p style="display: none !important; display: block">Hidden</p>`, want: ""},
115 {name: "visibility hidden", html: `<p>Before</p><span style="visibility: hidden">Hidden</span><p>After</p>`, want: "Before After"},
116 {name: "selection disabled", html: `<p>Before</p><span style="-webkit-user-select:none">Hidden</span><p>After</p>`, want: "Before After"},
117 {name: "ordinary template", html: `<p>Before</p><template><p>Inactive template</p></template><p>After</p>`, want: "Before After"},
118 {name: "closed dialog", html: `<p>Before</p><dialog>Closed dialog</dialog><p>After</p>`, want: "Before After"},
119 {name: "closed details", html: `<details><summary>Visible summary</summary><p>Closed content</p></details>`, want: "Visible summary"},
120 {name: "open details and dialog", html: `<details open><summary>Summary</summary><p>Details</p></details><dialog open>Dialog</dialog>`, want: "Summary Details Dialog"},
121 }
122 for _, tt := range tests {

Callers

nothing calls this directly

Calls 1

ExtractImageURLsFunction · 0.85

Tested by

no test coverage detected