Skip to content

Commit

Permalink
More tube tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
samwho committed Mar 19, 2024
1 parent c1ac221 commit ea74a26
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
Binary file added screenshots/grid-of-tube-fit.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/tube-center-fit-padding-5pct.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/tube-center-fit-padding-5px.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
22 changes: 22 additions & 0 deletions tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,3 +334,25 @@ componentTest("tube-center", () =>
componentTest("tube-center-fit", () =>
HStack(tube()).leaves((leaf) => leaf.center().fit()),
);

componentTest("tube-center-fit-padding-5pct", () =>
HStack(tube()).leaves((leaf) => leaf.center().fit().padding("5%")),
);

componentTest("tube-center-fit-padding-5px", () =>
HStack(tube()).leaves((leaf) => leaf.center().fit().padding(5)),
);

componentTest("grid-of-tube-fit", () =>
Grid(
tube(),
tube(),
tube(),
tube(),
tube(),
tube(),
tube(),
tube(),
tube(),
).leaves((leaf) => leaf.center().fit().padding(5)),
);

0 comments on commit ea74a26

Please sign in to comment.