Skip to content

Commit d297447

Browse files
sleepy-monaxLouciole
authored andcommitted
vaev-loader: Added simple image loading tests.
1 parent d4ce8f8 commit d297447

File tree

3 files changed

+39
-0
lines changed

3 files changed

+39
-0
lines changed

tests/html/green.png

587 Bytes
Loading

tests/html/green.svg

Lines changed: 3 additions & 0 deletions
Loading

tests/html/tag-img.xhtml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<test name="img tag">
2+
<container>
3+
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
4+
<style>
5+
body {
6+
margin: 0px;
7+
background-color: red;
8+
}
9+
</style>
10+
11+
<body>
12+
<slot />
13+
</body>
14+
15+
</html>
16+
</container>
17+
18+
<rendering help="reference">
19+
<div style="background-color: green; width: 200px; height: 200px;" />
20+
</rendering>
21+
22+
<rendering help="png image">
23+
<!-- green.png -->
24+
<img
25+
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAIAAAAiOjnJAAACEklEQVR4nO3SQQkAIADAQDW50S3hEOQuwR6bYw+4br0O4E/GImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBLGImEsEsYiYSwSxiJhLBIHjh0CEPZdHgsAAAAASUVORK5CYII=" />
26+
</rendering>
27+
28+
<rendering help="svg image">
29+
<!-- green.svg -->
30+
<img
31+
src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAwIiBoZWlnaHQ9IjIwMCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxyZWN0IHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIiBmaWxsPSJncmVlbiIgLz4KPC9zdmc+Cg==" />
32+
</rendering>
33+
34+
<error>
35+
</error>
36+
</test>

0 commit comments

Comments
 (0)