add picture tag test

This commit is contained in:
Yanzhen Yu
2019-10-12 16:54:41 +08:00
parent a58a118f2c
commit cd9de42b6d
2 changed files with 17 additions and 0 deletions

View File

@@ -172,6 +172,15 @@ exports[`[html file]: invalid-attribute.html 1`] = `
</body></html>"
`;
exports[`[html file]: picture.html 1`] = `
"<html xmlns=\\"http://www.w3.org/1999/xhtml\\"><head></head><body>
<picture>
<source type=\\"image/webp\\" srcset=\\"http://localhost:3030/assets/img/characters/robot.webp\\" />
<img src=\\"http://localhost:3030/assets/img/characters/robot.png\\" />
</picture>
</body></html>"
`;
exports[`[html file]: with-relative-res.html 1`] = `
"<!DOCTYPE html><html xmlns=\\"http://www.w3.org/1999/xhtml\\" lang=\\"en\\"><head>
<meta charset=\\"UTF-8\\" />

8
test/html/picture.html Normal file
View File

@@ -0,0 +1,8 @@
<html>
<body>
<picture>
<source type="image/webp" srcset="assets/img/characters/robot.webp" />
<img src="assets/img/characters/robot.png" />
</picture>
</body>
</html>