MCPcopy
hub / github.com/larksuite/cli / TestRun_MarqueeBlinkCollapseToSpan

Function TestRun_MarqueeBlinkCollapseToSpan

shortcuts/mail/lint/linter_test.go:158–169  ·  view source on GitHub ↗

TestRun_MarqueeBlinkCollapseToSpan verifies / → .

(t *testing.T)

Source from the content-addressed store, hash-verified

156
157// TestRun_MarqueeBlinkCollapseToSpan verifies <marquee>/<blink> → <span>.
158func TestRun_MarqueeBlinkCollapseToSpan(t *testing.T) {
159 for _, tag := range []string{"marquee", "blink"} {
160 rep := Run("<"+tag+">x</"+tag+">", Options{})
161 if len(rep.Applied) != 1 {
162 t.Errorf("[%s] expected 1 warning, got %d", tag, len(rep.Applied))
163 continue
164 }
165 if !strings.Contains(rep.CleanedHTML, "<span") {
166 t.Errorf("[%s] expected <span> wrapper, cleaned=%q", tag, rep.CleanedHTML)
167 }
168 }
169}
170
171// =====================================================================
172// Tier 3 — error / delete tags (tag classification row "错误(删除)").

Callers

nothing calls this directly

Calls 2

RunFunction · 0.70
ContainsMethod · 0.45

Tested by

no test coverage detected