Mayo commited on
tests: fix unit test
Browse files
koharu-renderer/tests/rendering.rs
CHANGED
|
@@ -375,7 +375,7 @@ fn test_rtl_alignment() -> Result<()> {
|
|
| 375 |
// Test Left Alignment
|
| 376 |
let layout_left = TextLayout::new(&font, Some(24.0))
|
| 377 |
.with_max_width(500.0)
|
| 378 |
-
.with_alignment(
|
| 379 |
.run(text)?;
|
| 380 |
|
| 381 |
let img_left = tiny_skia_renderer()?.render(
|
|
@@ -393,7 +393,7 @@ fn test_rtl_alignment() -> Result<()> {
|
|
| 393 |
// Test Right Alignment
|
| 394 |
let layout_right = TextLayout::new(&font, Some(24.0))
|
| 395 |
.with_max_width(500.0)
|
| 396 |
-
.with_alignment(
|
| 397 |
.run(text)?;
|
| 398 |
|
| 399 |
let img_right = tiny_skia_renderer()?.render(
|
|
|
|
| 375 |
// Test Left Alignment
|
| 376 |
let layout_left = TextLayout::new(&font, Some(24.0))
|
| 377 |
.with_max_width(500.0)
|
| 378 |
+
.with_alignment(koharu_renderer::TextAlign::Left)
|
| 379 |
.run(text)?;
|
| 380 |
|
| 381 |
let img_left = tiny_skia_renderer()?.render(
|
|
|
|
| 393 |
// Test Right Alignment
|
| 394 |
let layout_right = TextLayout::new(&font, Some(24.0))
|
| 395 |
.with_max_width(500.0)
|
| 396 |
+
.with_alignment(koharu_renderer::TextAlign::Right)
|
| 397 |
.run(text)?;
|
| 398 |
|
| 399 |
let img_right = tiny_skia_renderer()?.render(
|