@@ -71,29 +71,64 @@ exports[`"minify" option should work minify function: warnings 1`] = `[]`;
7171
7272exports [` "minify" option should work with 'swcMinify' and options: assets 1` ] = `
7373{
74- " simple.html" : " <!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content=" width = device - width ,user - scalable = no ,initial - scale = 1.0 ,maximum - scale = 1.0 ,minimum - scale = 1.0 " ><meta http-equiv=X-UA-Compatible content=" ie = edge " ><title>Document</title><h1>My First Heading</h1>
75- < p >My first paragraph.</ p >
76- < h2 >An Unordered HTML List</ h2 >
74+ " simple.html" : " <!doctype html><html lang=en><meta charset=UTF-8><meta name=viewport content=" width = device - width ,user - scalable = no ,initial - scale = 1.0 ,maximum - scale = 1.0 ,minimum - scale = 1.0 " ><meta http-equiv=X-UA-Compatible content=" ie = edge " ><title>Document</title><h1>My First Heading</h1> <p>My first paragraph.</p> <h2>An Unordered HTML List</h2> <ul> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ul> <h2>An Ordered HTML List</h2> <ol> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> " ,
75+ }
76+ ` ;
7777
78- <ul >
79- <li >Coffee</li >
80- <li >Tea</li >
81- <li >Milk</li >
82- </ul >
78+ exports [` "minify" option should work with 'swcMinify' and options: errors 1` ] = ` []` ;
8379
84- < h2 >An Ordered HTML List</ h2 >
80+ exports [ ` "minify" option should work with 'swcMinify' and options: warnings 1 ` ] = ` [] ` ;
8581
86- <ol >
87- <li >Coffee</li >
88- <li >Tea</li >
89- <li >Milk</li >
90- </ol >" ,
82+ exports [` "minify" option should work with 'swcMinify' and throw errors: assets 1` ] = `
83+ {
84+ " broken-html-syntax.html" : " Text < img src=" image .png " >
85+ Text & lt ;< img src = image .png >
86+ Text > <img src =image.png>
87+
88+ <a foo ><bar ></bar ></a ><boo >boohay
89+ <<<< >foo
90+ >>< </boo >" ,
9191}
9292` ;
9393
94- exports [` "minify" option should work with 'swcMinify' and options: errors 1` ] = ` []` ;
94+ exports [` "minify" option should work with 'swcMinify' and throw errors: errors 1` ] = `
95+ [
96+ "Error: broken-html-syntax.html from Html Minimizer plugin
97+ Abrupt closing of empty comment",
98+ "Error: broken-html-syntax.html from Html Minimizer plugin
99+ Cdata in html content",
100+ "Error: broken-html-syntax.html from Html Minimizer plugin
101+ End of file seen and there were open elements",
102+ "Error: broken-html-syntax.html from Html Minimizer plugin
103+ End tag "a" violates nesting rules",
104+ "Error: broken-html-syntax.html from Html Minimizer plugin
105+ Eof in tag",
106+ "Error: broken-html-syntax.html from Html Minimizer plugin
107+ Incorrectly opened comment",
108+ "Error: broken-html-syntax.html from Html Minimizer plugin
109+ Invalid first character of tag name",
110+ "Error: broken-html-syntax.html from Html Minimizer plugin
111+ Invalid first character of tag name",
112+ "Error: broken-html-syntax.html from Html Minimizer plugin
113+ Invalid first character of tag name",
114+ "Error: broken-html-syntax.html from Html Minimizer plugin
115+ Invalid first character of tag name",
116+ "Error: broken-html-syntax.html from Html Minimizer plugin
117+ Invalid first character of tag name",
118+ "Error: broken-html-syntax.html from Html Minimizer plugin
119+ Invalid first character of tag name",
120+ "Error: broken-html-syntax.html from Html Minimizer plugin
121+ Invalid first character of tag name",
122+ "Error: broken-html-syntax.html from Html Minimizer plugin
123+ Non void html element start tag with trailing solidus",
124+ "Error: broken-html-syntax.html from Html Minimizer plugin
125+ Non-space characters found without seeing a doctype first, expected "<!DOCTYPE html>"",
126+ "Error: broken-html-syntax.html from Html Minimizer plugin
127+ Unexpected question mark instead of tag name",
128+ ]
129+ ` ;
95130
96- exports [` "minify" option should work with 'swcMinify' and options : warnings 1` ] = ` []` ;
131+ exports [` "minify" option should work with 'swcMinify' and throw errors : warnings 1` ] = ` []` ;
97132
98133exports [` "minify" option should work with 'swcMinify': assets 1` ] = `
99134{
0 commit comments