Skip to content

Commit 5035fda

Browse files
test(html): control every reflected attribute against an element that lacks it
`scrolldelay` and `vspace` were asserted only on the element that reflects them, so a set widened for one of the two alone would have gone unseen.
1 parent 1ecdbab commit 5035fda

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎test/HtmlSyntax.unittest.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10175,9 +10175,13 @@ describe("SourceProcessor — reflected attributes are read per element", () =>
1017510175
expect(minify('<div scrollamount="0010">x</div>')).toBe(
1017610176
"<div scrollamount=0010>x</div>"
1017710177
);
10178+
expect(minify('<div scrolldelay="0085">x</div>')).toBe(
10179+
"<div scrolldelay=0085>x</div>"
10180+
);
1017810181
expect(minify('<marquee hspace="007" vspace="008">x</marquee>')).toBe(
1017910182
"<marquee hspace=7 vspace=8>x</marquee>"
1018010183
);
1018110184
expect(minify('<div hspace="007">x</div>')).toBe("<div hspace=007>x</div>");
10185+
expect(minify('<div vspace="008">x</div>')).toBe("<div vspace=008>x</div>");
1018210186
});
1018310187
});

0 commit comments

Comments
 (0)