Use NoopTextSystem during tests (#28607)
This should allow tests to be more similar across platforms. Release Notes: - N/A
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user