Use NoopTextSystem during tests (#28607)
This should allow tests to be more similar across platforms. Release Notes: - N/A
This commit is contained in:
parent
97a9a5de10
commit
5994ac5cec
7 changed files with 97 additions and 54 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue