Use NoopTextSystem during tests (#28607)

This should allow tests to be more similar across platforms.

Release Notes:

- N/A
This commit is contained in:
Conrad Irwin 2025-04-11 16:26:41 -06:00 committed by GitHub
parent 97a9a5de10
commit 5994ac5cec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 97 additions and 54 deletions

View file

@ -6638,7 +6638,7 @@ impl Element for EditorElement {
}
};
if editor.set_wrap_width(wrap_width, cx) {
if editor.set_wrap_width(wrap_width.map(|w| w.ceil()), cx) {
editor.snapshot(window, cx)
} else {
snapshot