-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix print_buffer It's still not perfect, but I think it's pretty useful already. A nuisance is that the test output starts immediately after the last character in the last line of the widget. I haven't found a way to prevent that. * Ensure errors from the spawned thread are not masked fixes #13 The error with multiple render_view() tests was caused by global logging being initialized more than once. See also tokio-rs/console#505 My workaround is a bit hacky, but I think there are a bunch of things, including logging, that should be set up using a configuation struct passed to `fn new()` anyway. Cleaning that workaround up would go with that task automatically.
- Loading branch information
Showing
5 changed files
with
59 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
src/view/snapshots/trui__view__block__tests__too_small_block.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
source: src/view/block.rs | ||
expression: buffer | ||
--- | ||
Buffer { | ||
area: Rect { x: 0, y: 0, width: 7, height: 5 }, | ||
content: [ | ||
"┌─────┐", | ||
"│some │", | ||
"│ │", | ||
"│ │", | ||
"└─────┘", | ||
], | ||
styles: [ | ||
x: 0, y: 0, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, | ||
x: 1, y: 1, fg: Cyan, bg: Reset, underline: Reset, modifier: NONE, | ||
x: 6, y: 1, fg: Reset, bg: Reset, underline: Reset, modifier: NONE, | ||
] | ||
} |