Skip to content

Commit 080f5d6

Browse files
committed
Document Test Change
1 parent 0f2cbbb commit 080f5d6

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

Tests/CodeEditTextViewTests/LayoutManager/TextLayoutManagerTests.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,8 +212,11 @@ struct TextLayoutManagerTests {
212212
)
213213
}
214214

215-
/// Inserting a new line should cause layout going down the rest of the screen, because the following lines
216-
/// should have moved their position to accomodate the new line.
215+
/// ~~Inserting a new line should cause layout going down the rest of the screen, because the following lines
216+
/// should have moved their position to accomodate the new line.~~
217+
/// This is slightly changed now. The layout manager checks if a line actually needs to be typeset again and only
218+
/// invalidates it if it does. Otherwise it moves lines. This test now just checks that the invalidated lines
219+
/// equal the expected invalidated lines.
217220
@Test
218221
func editsWithNewlinesForceLayoutGoingDownScreen() {
219222
layoutManager.layoutLines(in: NSRect(x: 0, y: 0, width: 1000, height: 1000))

0 commit comments

Comments
 (0)