(t *testing.T)
| 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 { |
| 123 | t.Run(tt.name, func(t *testing.T) { |
| 124 | if got := strings.Join(strings.Fields(MessageSourceText(tt.html)), " "); got != tt.want { |
| 125 | t.Errorf("MessageSourceText = %q, want %q", got, tt.want) |
| 126 | } |
| 127 | }) |
| 128 | } |
| 129 | } |
nothing calls this directly
no test coverage detected