Skip to content

Commit

Permalink
Add basic tests for Display::Contents
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoburns committed Sep 11, 2023
1 parent 170580e commit d1b0f0d
Show file tree
Hide file tree
Showing 8 changed files with 421 additions and 0 deletions.
23 changes: 23 additions & 0 deletions test_fixtures/contents/contents_flex_basic.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="../../scripts/gentest/test_helper.js"></script>
<link rel="stylesheet" type="text/css" href="../../scripts/gentest/test_base_style.css">
<title>
Test description
</title>
</head>
<body>

<div id="test-root" style="display: flex; width: 400px; height: 300px; justify-content: space-between;">
<div style="width: 30px"></div>
<div style="width: 30px"></div>
<div style="width: 30px"></div>
<div style="display: contents">
<div style="width: 30px"></div>
<div style="width: 30px"></div>
</div>
</div>

</body>
</html>
26 changes: 26 additions & 0 deletions test_fixtures/contents/contents_flex_nested.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="../../scripts/gentest/test_helper.js"></script>
<link rel="stylesheet" type="text/css" href="../../scripts/gentest/test_base_style.css">
<title>
Test description
</title>
</head>
<body>

<div id="test-root" style="display: flex; width: 400px; height: 300px; justify-content: space-between;">
<div style="width: 30px"></div>
<div style="width: 30px"></div>
<div style="width: 30px"></div>
<div style="display: contents">
<div style="display: contents">
<div style="width: 30px"></div>
<div style="width: 30px"></div>
</div>
<div style="width: 30px"></div>
</div>
</div>

</body>
</html>
28 changes: 28 additions & 0 deletions test_fixtures/contents/contents_flex_nested2.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html lang="en">
<head>
<script src="../../scripts/gentest/test_helper.js"></script>
<link rel="stylesheet" type="text/css" href="../../scripts/gentest/test_base_style.css">
<title>
Test description
</title>
</head>
<body>

<div id="test-root" style="display: flex; width: 400px; height: 300px; justify-content: space-between;">
<div style="width: 30px"></div>
<div style="width: 30px"></div>
<div style="display: contents">
<div style="width: 30px"></div>
<div style="display: contents">
<div style="display: contents">
<div style="width: 30px"></div>
<div style="width: 30px"></div>
</div>
<div style="width: 30px"></div>
</div>
</div>
</div>

</body>
</html>
95 changes: 95 additions & 0 deletions tests/generated/contents/contents_flex_basic.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

117 changes: 117 additions & 0 deletions tests/generated/contents/contents_flex_nested.rs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit d1b0f0d

Please sign in to comment.