Skip to content

Commit 275da00

Browse files
committed
Add basic tests for Display::Contents
1 parent 170580e commit 275da00

8 files changed

+421
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<script src="../../scripts/gentest/test_helper.js"></script>
5+
<link rel="stylesheet" type="text/css" href="../../scripts/gentest/test_base_style.css">
6+
<title>
7+
Test description
8+
</title>
9+
</head>
10+
<body>
11+
12+
<div id="test-root" style="display: flex; width: 400px; height: 300px; justify-content: space-between;">
13+
<div style="width: 30px;"></div>
14+
<div style="width: 30px;"></div>
15+
<div style="width: 30px;"></div>
16+
<div style="display: contents;">
17+
<div style="width: 30px;"></div>
18+
<div style="width: 30px;"></div>
19+
</div>
20+
</div>
21+
22+
</body>
23+
</html>
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<script src="../../scripts/gentest/test_helper.js"></script>
5+
<link rel="stylesheet" type="text/css" href="../../scripts/gentest/test_base_style.css">
6+
<title>
7+
Test description
8+
</title>
9+
</head>
10+
<body>
11+
12+
<div id="test-root" style="display: flex; width: 400px; height: 300px; justify-content: space-between;">
13+
<div style="width: 30px;"></div>
14+
<div style="width: 30px;"></div>
15+
<div style="width: 30px;"></div>
16+
<div style="display: contents;">
17+
<div style="display: contents;">
18+
<div style="width: 30px;"></div>
19+
<div style="width: 30px;"></div>
20+
</div>
21+
<div style="width: 30px;"></div>
22+
</div>
23+
</div>
24+
25+
</body>
26+
</html>
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<script src="../../scripts/gentest/test_helper.js"></script>
5+
<link rel="stylesheet" type="text/css" href="../../scripts/gentest/test_base_style.css">
6+
<title>
7+
Test description
8+
</title>
9+
</head>
10+
<body>
11+
12+
<div id="test-root" style="display: flex; width: 400px; height: 300px; justify-content: space-between;">
13+
<div style="width: 30px;"></div>
14+
<div style="width: 30px;"></div>
15+
<div style="display: contents;">
16+
<div style="width: 30px;"></div>
17+
<div style="display: contents;">
18+
<div style="display: contents;">
19+
<div style="width: 30px;"></div>
20+
<div style="width: 30px;"></div>
21+
</div>
22+
<div style="width: 30px;"></div>
23+
</div>
24+
</div>
25+
</div>
26+
27+
</body>
28+
</html>

tests/generated/contents/contents_flex_basic.rs

Lines changed: 95 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/generated/contents/contents_flex_nested.rs

Lines changed: 117 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)