Fix fold tests with new representation

Switch UI code from using display rows to using buffer rows
Make folds only show up on lines with line layouts

co-authored-by: Max <max@zed.dev>
This commit is contained in:
Mikayla Maki
2023-03-17 16:00:22 -07:00
co-authored by Max
parent c427a8c584
commit eba119b914
4 changed files with 93 additions and 117 deletions
+2 -2
View File
@@ -1599,8 +1599,8 @@ mod tests {
.iter()
.map(|range| range.start.to_point(&buffer_snapshot).row)
.collect::<HashSet<_>>();
for row in 0..=buffer_snapshot.max_buffer_row() {
assert_eq!(snapshot.is_line_folded(row), fold_start_rows.contains(&row));
for row in fold_start_rows {
assert!(snapshot.is_line_folded(row));
}
for _ in 0..5 {