Skip to content

Commit e142eea

Browse files
authored
test(html): cover the tables no corpus reaches (#22058)
* test(html): cover the tables no corpus reaches Measured every lookup table in lib/html/data.js against configCases, wpt and the framework corpus: 21 held names nothing spelled. Seven cases take 24 tables further and 15 to full, EVENT_HANDLER_ATTRIBUTES from 5/94 among them, each handler on an element the table allows so a wrong binding fails rather than declines quietly. Two pin what must not fold: autocomplete names autofill on an input where it enumerates on a form. * test(html): read a token list as the set of tokens it names The new attribute case put a repeat and extra whitespace in `accesskey` and `itemref`, and the equivalence check called the minified page a different DOM: it read neither as a list, and it sorted the lists it did read without dropping a repeat. Both are sets of unique tokens in the spec, so a repeat names nothing the first did not. `ping` stays as written, where the spec lists URLs rather than a set. * test(html): read a token list as the DOM reflects it, not as the prose reads The set the harness folds a repeat out of was written from the spec calling a list unique, which is a wider line than the printer's: it drops a repeat only where the list reflects as a DOMTokenList, leaving `headers` and `accesskey` as the strings they reflect as. Folding those here hid the difference. The case now carries a repeat in all six lists, where it drove two.
1 parent 373c595 commit e142eea

43 files changed

Lines changed: 949 additions & 6 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2+
3+
exports[`ConfigCacheTestCases html attribute-tables attribute-tables should compile 1`] = `
4+
"<!doctype html><head><title>attribute-tables</title></head><body>
5+
<form action=/post autocomplete=on>
6+
<input type=text autocapitalize=sentences autocomplete=EMAIL enterkeyhint=go inputmode=numeric spellcheck=true maxlength=10 minlength=2 autofocus>
7+
<textarea writingsuggestions=false maxlength=100>text</textarea>
8+
<button formaction=\\" /submit?a=1&amp;b=2 \\" formenctype=multipart/form-data formmethod=post formnovalidate>send</button>
9+
</form>
10+
<img src=data:, alt=a decoding=async ismap>
11+
<p draggable=true accesskey=\\"s s\\" itemref=\\"one two\\">draggable</p>
12+
<a href=/x ping=\\"https://example.test/p https://example.test/p https://example.test/q\\">ping</a>
13+
<div itemscope itemtype=https://example.test/T><span itemprop=\\"m n\\">micro</span></div>
14+
<table><tr><th id=h1>h<td headers=\\"h1 h1\\">cell</table>
15+
<video controls autoplay muted playsinline loop></video>
16+
<iframe src=/x allowfullscreen></iframe>
17+
<marquee scrollamount=12 scrolldelay=85>scrolling</marquee>
18+
<object declare data=data:,></object>
19+
<map name=m><area shape=rect coords=0,0,1,1 nohref></map>
20+
21+
22+
23+
</body></html>"
24+
`;
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2+
3+
exports[`ConfigTestCases html attribute-tables attribute-tables should compile 1`] = `
4+
"<!doctype html><head><title>attribute-tables</title></head><body>
5+
<form action=/post autocomplete=on>
6+
<input type=text autocapitalize=sentences autocomplete=EMAIL enterkeyhint=go inputmode=numeric spellcheck=true maxlength=10 minlength=2 autofocus>
7+
<textarea writingsuggestions=false maxlength=100>text</textarea>
8+
<button formaction=\\" /submit?a=1&amp;b=2 \\" formenctype=multipart/form-data formmethod=post formnovalidate>send</button>
9+
</form>
10+
<img src=data:, alt=a decoding=async ismap>
11+
<p draggable=true accesskey=\\"s s\\" itemref=\\"one two\\">draggable</p>
12+
<a href=/x ping=\\"https://example.test/p https://example.test/p https://example.test/q\\">ping</a>
13+
<div itemscope itemtype=https://example.test/T><span itemprop=\\"m n\\">micro</span></div>
14+
<table><tr><th id=h1>h<td headers=\\"h1 h1\\">cell</table>
15+
<video controls autoplay muted playsinline loop></video>
16+
<iframe src=/x allowfullscreen></iframe>
17+
<marquee scrollamount=12 scrolldelay=85>scrolling</marquee>
18+
<object declare data=data:,></object>
19+
<map name=m><area shape=rect coords=0,0,1,1 nohref></map>
20+
21+
22+
23+
</body></html>"
24+
`;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import "./page.html";
2+
3+
// One attribute per name the rewrite tables hold. `autocomplete` is here twice:
4+
// on a form it is enumerated and folds, on an input it names autofill and does not.
5+
it("should rewrite every attribute the tables name", () => {
6+
expect(true).toBe(true);
7+
});
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head><title>attribute-tables</title></head>
4+
<body>
5+
<form action="/post" autocomplete="ON">
6+
<input type="text" autocapitalize="SENTENCES" autocomplete="EMAIL" enterkeyhint="GO" inputmode="NUMERIC" spellcheck="TRUE" maxlength=" 010 " minlength=" 002 " autofocus="autofocus">
7+
<textarea writingsuggestions="FALSE" maxlength=" 0100 ">text</textarea>
8+
<button formaction=" /submit?a=1&amp;b=2 " formenctype="MULTIPART/FORM-DATA" formmethod="POST" formnovalidate="formnovalidate">send</button>
9+
</form>
10+
<img src="https://example.test/a.png" alt="a" decoding="ASYNC" ismap="ismap">
11+
<p draggable="TRUE" accesskey=" s s " itemref=" one two one ">draggable</p>
12+
<a href="/x" ping=" https://example.test/p https://example.test/p https://example.test/q ">ping</a>
13+
<div itemscope itemtype=" https://example.test/T https://example.test/T "><span itemprop=" n n m ">micro</span></div>
14+
<table><tr><th id="h1">h</th><td headers=" h1 h1 ">cell</td></tr></table>
15+
<video controls="controls" autoplay="autoplay" muted="muted" playsinline="playsinline" loop="loop"></video>
16+
<iframe src="/x" allowfullscreen="allowfullscreen"></iframe>
17+
<marquee scrollamount=" 012 " scrolldelay=" 085 ">scrolling</marquee>
18+
<object declare="declare" data="https://example.test/o"></object>
19+
<map name="m"><area shape="rect" coords="0,0,1,1" nohref="nohref"></map>
20+
<frameset><frame noresize="noresize" src="/f"></frameset>
21+
</body>
22+
</html>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"use strict";
2+
3+
const fs = require("fs");
4+
const path = require("path");
5+
6+
module.exports = {
7+
findBundle(_i, options) {
8+
const files = fs.readdirSync(options.output.path);
9+
return files.includes("main.js") ? ["./main.js"] : undefined;
10+
},
11+
afterExecute(options) {
12+
const html = fs.readFileSync(
13+
path.join(options.output.path, "page.html"),
14+
"utf8"
15+
);
16+
expect(html).toMatchSnapshot();
17+
}
18+
};
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
"use strict";
2+
3+
const MinimizerPlugin = require("minimizer-webpack-plugin");
4+
const webpack = require("../../../../");
5+
6+
const { htmlMinify } = webpack.html.syntax;
7+
8+
/** @type {import("../../../../").Configuration} */
9+
module.exports = {
10+
target: "web",
11+
mode: "production",
12+
output: {
13+
filename: "[name].js",
14+
pathinfo: false
15+
},
16+
module: {
17+
generator: {
18+
html: {
19+
extract: true
20+
}
21+
}
22+
},
23+
optimization: {
24+
minimize: true,
25+
minimizer: [
26+
{
27+
apply: (compiler) => {
28+
new MinimizerPlugin({
29+
test: /\.(?:[cm]?js|html)(\?.*)?$/i,
30+
parallel: false,
31+
minify: [MinimizerPlugin.terserMinify, htmlMinify],
32+
minimizerOptions: [
33+
{},
34+
{
35+
normalizeEnumeratedAttributes: true,
36+
normalizeNumericAttributes: true,
37+
collapseBooleanAttributes: true,
38+
sortTokenLists: true
39+
}
40+
]
41+
}).apply(/** @type {EXPECTED_ANY} */ (compiler));
42+
}
43+
}
44+
]
45+
},
46+
experiments: {
47+
html: true
48+
}
49+
};
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2+
3+
exports[`ConfigCacheTestCases html event-handler-attributes event-handler-attributes should compile 1`] = `
4+
"<!doctype html><head><title>event-handler-attributes</title></head><body onafterprint='report(\\"onafterprint\\")' onbeforeprint='report(\\"onbeforeprint\\")' onbeforeunload='report(\\"onbeforeunload\\")' onhashchange='report(\\"onhashchange\\")' onlanguagechange='report(\\"onlanguagechange\\")' onmessage='report(\\"onmessage\\")' onmessageerror='report(\\"onmessageerror\\")' onoffline='report(\\"onoffline\\")' ononline='report(\\"ononline\\")' onpagehide='report(\\"onpagehide\\")' onpagereveal='report(\\"onpagereveal\\")' onpageshow='report(\\"onpageshow\\")' onpageswap='report(\\"onpageswap\\")' onpopstate='report(\\"onpopstate\\")' onrejectionhandled='report(\\"onrejectionhandled\\")' onstorage='report(\\"onstorage\\")' onunhandledrejection='report(\\"onunhandledrejection\\")' onunload='report(\\"onunload\\")'>
5+
<button onabort='report(\\"onabort\\")'>onabort</button>
6+
<button onauxclick='report(\\"onauxclick\\")'>onauxclick</button>
7+
<button onbeforeinput='report(\\"onbeforeinput\\")'>onbeforeinput</button>
8+
<button onbeforematch='report(\\"onbeforematch\\")'>onbeforematch</button>
9+
<button onbeforetoggle='report(\\"onbeforetoggle\\")'>onbeforetoggle</button>
10+
<button onblur='report(\\"onblur\\")'>onblur</button>
11+
<button oncancel='report(\\"oncancel\\")'>oncancel</button>
12+
<button oncanplay='report(\\"oncanplay\\")'>oncanplay</button>
13+
<button oncanplaythrough='report(\\"oncanplaythrough\\")'>oncanplaythrough</button>
14+
<button onchange='report(\\"onchange\\")'>onchange</button>
15+
<button onclick='report(\\"onclick\\")'>onclick</button>
16+
<button onclose='report(\\"onclose\\")'>onclose</button>
17+
<button oncommand='report(\\"oncommand\\")'>oncommand</button>
18+
<button oncontextlost='report(\\"oncontextlost\\")'>oncontextlost</button>
19+
<button oncontextmenu='report(\\"oncontextmenu\\")'>oncontextmenu</button>
20+
<button oncontextrestored='report(\\"oncontextrestored\\")'>oncontextrestored</button>
21+
<button oncopy='report(\\"oncopy\\")'>oncopy</button>
22+
<button oncuechange='report(\\"oncuechange\\")'>oncuechange</button>
23+
<button oncut='report(\\"oncut\\")'>oncut</button>
24+
<button ondblclick='report(\\"ondblclick\\")'>ondblclick</button>
25+
<button ondrag='report(\\"ondrag\\")'>ondrag</button>
26+
<button ondragend='report(\\"ondragend\\")'>ondragend</button>
27+
<button ondragenter='report(\\"ondragenter\\")'>ondragenter</button>
28+
<button ondragleave='report(\\"ondragleave\\")'>ondragleave</button>
29+
<button ondragover='report(\\"ondragover\\")'>ondragover</button>
30+
<button ondragstart='report(\\"ondragstart\\")'>ondragstart</button>
31+
<button ondrop='report(\\"ondrop\\")'>ondrop</button>
32+
<button ondurationchange='report(\\"ondurationchange\\")'>ondurationchange</button>
33+
<button onemptied='report(\\"onemptied\\")'>onemptied</button>
34+
<button onended='report(\\"onended\\")'>onended</button>
35+
<button onerror='report(\\"onerror\\")'>onerror</button>
36+
<button onfocus='report(\\"onfocus\\")'>onfocus</button>
37+
<button onformdata='report(\\"onformdata\\")'>onformdata</button>
38+
<button oninput='report(\\"oninput\\")'>oninput</button>
39+
<button oninvalid='report(\\"oninvalid\\")'>oninvalid</button>
40+
<button onkeydown='report(\\"onkeydown\\")'>onkeydown</button>
41+
<button onkeypress='report(\\"onkeypress\\")'>onkeypress</button>
42+
<button onkeyup='report(\\"onkeyup\\")'>onkeyup</button>
43+
<button onload='report(\\"onload\\")'>onload</button>
44+
<button onloadeddata='report(\\"onloadeddata\\")'>onloadeddata</button>
45+
<button onloadedmetadata='report(\\"onloadedmetadata\\")'>onloadedmetadata</button>
46+
<button onloadstart='report(\\"onloadstart\\")'>onloadstart</button>
47+
<button onmousedown='report(\\"onmousedown\\")'>onmousedown</button>
48+
<button onmouseenter='report(\\"onmouseenter\\")'>onmouseenter</button>
49+
<button onmouseleave='report(\\"onmouseleave\\")'>onmouseleave</button>
50+
<button onmousemove='report(\\"onmousemove\\")'>onmousemove</button>
51+
<button onmouseout='report(\\"onmouseout\\")'>onmouseout</button>
52+
<button onmouseover='report(\\"onmouseover\\")'>onmouseover</button>
53+
<button onmouseup='report(\\"onmouseup\\")'>onmouseup</button>
54+
<button onpaste='report(\\"onpaste\\")'>onpaste</button>
55+
<button onpause='report(\\"onpause\\")'>onpause</button>
56+
<button onplay='report(\\"onplay\\")'>onplay</button>
57+
<button onplaying='report(\\"onplaying\\")'>onplaying</button>
58+
<button onprogress='report(\\"onprogress\\")'>onprogress</button>
59+
<button onratechange='report(\\"onratechange\\")'>onratechange</button>
60+
<button onreset='report(\\"onreset\\")'>onreset</button>
61+
<button onresize='report(\\"onresize\\")'>onresize</button>
62+
<button onscroll='report(\\"onscroll\\")'>onscroll</button>
63+
<button onscrollend='report(\\"onscrollend\\")'>onscrollend</button>
64+
<button onsecuritypolicyviolation='report(\\"onsecuritypolicyviolation\\")'>onsecuritypolicyviolation</button>
65+
<button onseeked='report(\\"onseeked\\")'>onseeked</button>
66+
<button onseeking='report(\\"onseeking\\")'>onseeking</button>
67+
<button onselect='report(\\"onselect\\")'>onselect</button>
68+
<button onslotchange='report(\\"onslotchange\\")'>onslotchange</button>
69+
<button onstalled='report(\\"onstalled\\")'>onstalled</button>
70+
<button onsubmit='report(\\"onsubmit\\")'>onsubmit</button>
71+
<button onsuspend='report(\\"onsuspend\\")'>onsuspend</button>
72+
<button ontimeupdate='report(\\"ontimeupdate\\")'>ontimeupdate</button>
73+
<button ontoggle='report(\\"ontoggle\\")'>ontoggle</button>
74+
<button onvolumechange='report(\\"onvolumechange\\")'>onvolumechange</button>
75+
<button onwaiting='report(\\"onwaiting\\")'>onwaiting</button>
76+
<button onwebkitanimationend='report(\\"onwebkitanimationend\\")'>onwebkitanimationend</button>
77+
<button onwebkitanimationiteration='report(\\"onwebkitanimationiteration\\")'>onwebkitanimationiteration</button>
78+
<button onwebkitanimationstart='report(\\"onwebkitanimationstart\\")'>onwebkitanimationstart</button>
79+
<button onwebkittransitionend='report(\\"onwebkittransitionend\\")'>onwebkittransitionend</button>
80+
<button onwheel='report(\\"onwheel\\")'>onwheel</button>
81+
82+
83+
</body></html>"
84+
`;
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
2+
3+
exports[`ConfigTestCases html event-handler-attributes event-handler-attributes should compile 1`] = `
4+
"<!doctype html><head><title>event-handler-attributes</title></head><body onafterprint='report(\\"onafterprint\\")' onbeforeprint='report(\\"onbeforeprint\\")' onbeforeunload='report(\\"onbeforeunload\\")' onhashchange='report(\\"onhashchange\\")' onlanguagechange='report(\\"onlanguagechange\\")' onmessage='report(\\"onmessage\\")' onmessageerror='report(\\"onmessageerror\\")' onoffline='report(\\"onoffline\\")' ononline='report(\\"ononline\\")' onpagehide='report(\\"onpagehide\\")' onpagereveal='report(\\"onpagereveal\\")' onpageshow='report(\\"onpageshow\\")' onpageswap='report(\\"onpageswap\\")' onpopstate='report(\\"onpopstate\\")' onrejectionhandled='report(\\"onrejectionhandled\\")' onstorage='report(\\"onstorage\\")' onunhandledrejection='report(\\"onunhandledrejection\\")' onunload='report(\\"onunload\\")'>
5+
<button onabort='report(\\"onabort\\")'>onabort</button>
6+
<button onauxclick='report(\\"onauxclick\\")'>onauxclick</button>
7+
<button onbeforeinput='report(\\"onbeforeinput\\")'>onbeforeinput</button>
8+
<button onbeforematch='report(\\"onbeforematch\\")'>onbeforematch</button>
9+
<button onbeforetoggle='report(\\"onbeforetoggle\\")'>onbeforetoggle</button>
10+
<button onblur='report(\\"onblur\\")'>onblur</button>
11+
<button oncancel='report(\\"oncancel\\")'>oncancel</button>
12+
<button oncanplay='report(\\"oncanplay\\")'>oncanplay</button>
13+
<button oncanplaythrough='report(\\"oncanplaythrough\\")'>oncanplaythrough</button>
14+
<button onchange='report(\\"onchange\\")'>onchange</button>
15+
<button onclick='report(\\"onclick\\")'>onclick</button>
16+
<button onclose='report(\\"onclose\\")'>onclose</button>
17+
<button oncommand='report(\\"oncommand\\")'>oncommand</button>
18+
<button oncontextlost='report(\\"oncontextlost\\")'>oncontextlost</button>
19+
<button oncontextmenu='report(\\"oncontextmenu\\")'>oncontextmenu</button>
20+
<button oncontextrestored='report(\\"oncontextrestored\\")'>oncontextrestored</button>
21+
<button oncopy='report(\\"oncopy\\")'>oncopy</button>
22+
<button oncuechange='report(\\"oncuechange\\")'>oncuechange</button>
23+
<button oncut='report(\\"oncut\\")'>oncut</button>
24+
<button ondblclick='report(\\"ondblclick\\")'>ondblclick</button>
25+
<button ondrag='report(\\"ondrag\\")'>ondrag</button>
26+
<button ondragend='report(\\"ondragend\\")'>ondragend</button>
27+
<button ondragenter='report(\\"ondragenter\\")'>ondragenter</button>
28+
<button ondragleave='report(\\"ondragleave\\")'>ondragleave</button>
29+
<button ondragover='report(\\"ondragover\\")'>ondragover</button>
30+
<button ondragstart='report(\\"ondragstart\\")'>ondragstart</button>
31+
<button ondrop='report(\\"ondrop\\")'>ondrop</button>
32+
<button ondurationchange='report(\\"ondurationchange\\")'>ondurationchange</button>
33+
<button onemptied='report(\\"onemptied\\")'>onemptied</button>
34+
<button onended='report(\\"onended\\")'>onended</button>
35+
<button onerror='report(\\"onerror\\")'>onerror</button>
36+
<button onfocus='report(\\"onfocus\\")'>onfocus</button>
37+
<button onformdata='report(\\"onformdata\\")'>onformdata</button>
38+
<button oninput='report(\\"oninput\\")'>oninput</button>
39+
<button oninvalid='report(\\"oninvalid\\")'>oninvalid</button>
40+
<button onkeydown='report(\\"onkeydown\\")'>onkeydown</button>
41+
<button onkeypress='report(\\"onkeypress\\")'>onkeypress</button>
42+
<button onkeyup='report(\\"onkeyup\\")'>onkeyup</button>
43+
<button onload='report(\\"onload\\")'>onload</button>
44+
<button onloadeddata='report(\\"onloadeddata\\")'>onloadeddata</button>
45+
<button onloadedmetadata='report(\\"onloadedmetadata\\")'>onloadedmetadata</button>
46+
<button onloadstart='report(\\"onloadstart\\")'>onloadstart</button>
47+
<button onmousedown='report(\\"onmousedown\\")'>onmousedown</button>
48+
<button onmouseenter='report(\\"onmouseenter\\")'>onmouseenter</button>
49+
<button onmouseleave='report(\\"onmouseleave\\")'>onmouseleave</button>
50+
<button onmousemove='report(\\"onmousemove\\")'>onmousemove</button>
51+
<button onmouseout='report(\\"onmouseout\\")'>onmouseout</button>
52+
<button onmouseover='report(\\"onmouseover\\")'>onmouseover</button>
53+
<button onmouseup='report(\\"onmouseup\\")'>onmouseup</button>
54+
<button onpaste='report(\\"onpaste\\")'>onpaste</button>
55+
<button onpause='report(\\"onpause\\")'>onpause</button>
56+
<button onplay='report(\\"onplay\\")'>onplay</button>
57+
<button onplaying='report(\\"onplaying\\")'>onplaying</button>
58+
<button onprogress='report(\\"onprogress\\")'>onprogress</button>
59+
<button onratechange='report(\\"onratechange\\")'>onratechange</button>
60+
<button onreset='report(\\"onreset\\")'>onreset</button>
61+
<button onresize='report(\\"onresize\\")'>onresize</button>
62+
<button onscroll='report(\\"onscroll\\")'>onscroll</button>
63+
<button onscrollend='report(\\"onscrollend\\")'>onscrollend</button>
64+
<button onsecuritypolicyviolation='report(\\"onsecuritypolicyviolation\\")'>onsecuritypolicyviolation</button>
65+
<button onseeked='report(\\"onseeked\\")'>onseeked</button>
66+
<button onseeking='report(\\"onseeking\\")'>onseeking</button>
67+
<button onselect='report(\\"onselect\\")'>onselect</button>
68+
<button onslotchange='report(\\"onslotchange\\")'>onslotchange</button>
69+
<button onstalled='report(\\"onstalled\\")'>onstalled</button>
70+
<button onsubmit='report(\\"onsubmit\\")'>onsubmit</button>
71+
<button onsuspend='report(\\"onsuspend\\")'>onsuspend</button>
72+
<button ontimeupdate='report(\\"ontimeupdate\\")'>ontimeupdate</button>
73+
<button ontoggle='report(\\"ontoggle\\")'>ontoggle</button>
74+
<button onvolumechange='report(\\"onvolumechange\\")'>onvolumechange</button>
75+
<button onwaiting='report(\\"onwaiting\\")'>onwaiting</button>
76+
<button onwebkitanimationend='report(\\"onwebkitanimationend\\")'>onwebkitanimationend</button>
77+
<button onwebkitanimationiteration='report(\\"onwebkitanimationiteration\\")'>onwebkitanimationiteration</button>
78+
<button onwebkitanimationstart='report(\\"onwebkitanimationstart\\")'>onwebkitanimationstart</button>
79+
<button onwebkittransitionend='report(\\"onwebkittransitionend\\")'>onwebkittransitionend</button>
80+
<button onwheel='report(\\"onwheel\\")'>onwheel</button>
81+
82+
83+
</body></html>"
84+
`;
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import "./page.html";
2+
3+
// Every name in EVENT_HANDLER_ATTRIBUTES, each on an element the table allows
4+
// it on, so a wrong binding shows as a handler that stopped being minified.
5+
it("should minify every event handler attribute", () => {
6+
expect(true).toBe(true);
7+
});

0 commit comments

Comments
 (0)