1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-08-01 17:38:33 +00:00

Add negative test case for loading atrribute

This commit is contained in:
Bente Groh 2025-06-25 17:56:34 +02:00
parent 1f8f7f20c0
commit f0ea59f3a2

View file

@ -78,6 +78,7 @@ func Test_Sanitizer(t *testing.T) {
// Images lazy loading
`<img src="/image1" alt="image1" loading="lazy">`, `<img src="/image1" alt="image1" loading="lazy">`,
`<img src="/image1" alt="image1" loading="eager">`, `<img src="/image1" alt="image1">`,
}
for i := 0; i < len(testCases); i += 2 {